Jump to content

Small problem


miligraf

Recommended Posts

Try doing the following to all your input:

 

$var_stripped = stripslashes($_REQUEST['var']);
$var_esc = mysql_real_escape_string($var_stripped);

 

Then use $var_esc in your mysql query.  With any luck, it'll pop out the other end in the way you want it to :)  If it doesn't, try printing out the variable at every stage of processing, to see where the processing goes wrong.

Link to comment
https://forums.phpfreaks.com/topic/43611-small-problem/#findComment-211780
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.