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']))
Another Way To Use Mysql_real_escape_string Instead Trim(stripslashes(
Another Way To Use Mysql_real_escape_string Instead Trim(stripslashes(
Another Way To Use Mysql_real_escape_string Instead Trim(stripslashes(
Post Description:
Post Tags: another, way, to, use, mysql, real, escape, string, instead, trimstripslashes
This Post Has Been Viewed 704 Times Since Sun Feb 10, 2008 5:28 pm Posted By hostman with 3 replies
Post Description:
Post Tags: another, way, to, use, mysql, real, escape, string, instead, trimstripslashes
This Post Has Been Viewed 704 Times Since Sun Feb 10, 2008 5:28 pm Posted By hostman with 3 replies
| Another Way To Use Mysql_real_escape_string Instead Trim(stripslashes( |
Leave Your Comments [ dejar commentarios ]
Comments and replies About Another Way To Use Mysql_real_escape_string Instead Trim(stripslashes(
:: 1 :: #64155 - Reply By Wayne On Thu Jul 31, 2008 8:11 am
no. stripslashes can be fooled. mysql_real_escape_string is the only action to take against sql injection
:: 2 :: #64812 - Reply By ditro On Mon Aug 04, 2008 11:05 am
sql error similar
:: 3 :: #64813 - Reply By erew On Mon Aug 04, 2008 11:06 am
what.is

