Jump to content

mysql_real_escape_string


steviemac

Recommended Posts

Could someone tell me if this is the proper use of mysql_real_escape_string or is there something better or more code that I can use to help prevent sql injections?

 

$find = mysql_real_escape_string($find);
$data = mysql_query("SELECT * FROM myuser WHERE upper(email) ='$find' LIMIT 1");

while($result = mysql_fetch_array( $data ))
{
echo "Success";
}

 

Thank You for your help.

Link to comment
https://forums.phpfreaks.com/topic/254302-mysql_real_escape_string/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.