another way to use mysql_real_escape_string instead trim(stripslashes(

RegisterLogin
another way to use mysql_real_escape_string instead trim(stripslashes(
Post Description: another way to use mysql_real_escape_string instead trim(stripslashes(
Tags: another, way, to, use, mysql_real_escape_string, instead, trim(stripslashes(
This Post Was Posted On Feb 29, 2008 By web hosting #1490
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']))
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
blake
#1929 1
i think mysql_real_escape_string() is much safer, always use it before trim stripslashes or real escape string because it opens up to hackers to your site if you not use mysql_real_escape_string() fucntion when putting data into your database.

its just safer
Jul 12, 2009 Reply Report abuse
©2011 Webune Forums - Wed Dec 21, 2011 3:43 am
Powered by: Webune Forums V3