Another Way To Use Mysql_real_escape_string Instead Trim(stripslashes(
Post Description: another way to use mysql_real_escape_string instead trim(stripslashes(
another, way, to, use, mysql, real, escape, string, instead, trimstripslashes
This Post Has Been Viewed 48 Times Since Fri Feb 29, 2008 12:01 pm Posted By web hosting with 0 replies
POST# 566
Posted On: Fri Feb 29, 2008 12:01 pm
Topic: Another Way To Use Mysql_real_escape_string Instead Trim(stripslashes(
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']))
No Repies