Jump to content

**RESOLVED** Still need help with slashes in mysql query


alexcmm

Recommended Posts

I got help in another post about how to remove slashes from a variable being sent to a msql query and this was given:
[b]$query="SELECT * FROM $usertable ".stripslashes($mainreport)." ".stripslashes($sortby)";[/b]

But it gives the error:
[i]Parse error: parse error, unexpected '\"' in /usr/.../mainreport.php on line 133[/i]

Can anyone explain what this is telling me to fix?

original post is here:
http://www.phpfreaks.com/forums/index.php/topic,115361.0.html

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.