Another Way To Use Mysql_real_escape_string Instead Trim(stripslashes(
- Forums
- MySQL
- Another Way To Use Mysql_real_escape_string Instead Trim(stripslashes(
This Page Contains information about Another Way To Use Mysql_real_escape_string Instead Trim(stripslashes( By wallpaperama in category MySQL with 7 Replies. [887], Last Updated: Sat May 18, 2024
wallpaperama
Sun Feb 10, 2008
7 Comments
2634 Visits
sometimes mysql doesn't let you insert data into your database unless its cleaned.
an good way to do this is with the function: mysql_real_escape_string()
example: mysql_real_escape_string($_POST['somedata'])
but its better to use this instead:
trim(stripslashes($_POST['somedata']))
WARNING: but if you have a website, you MUST use mysql_real_escape_string() for security