alexcmm Posted November 17, 2006 Share Posted November 17, 2006 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 Link to comment https://forums.phpfreaks.com/topic/27615-resolved-still-need-help-with-slashes-in-mysql-query/ Share on other sites More sharing options...
Caesar Posted November 17, 2006 Share Posted November 17, 2006 Is that line 133? Link to comment https://forums.phpfreaks.com/topic/27615-resolved-still-need-help-with-slashes-in-mysql-query/#findComment-126287 Share on other sites More sharing options...
alexcmm Posted November 17, 2006 Author Share Posted November 17, 2006 Yes Link to comment https://forums.phpfreaks.com/topic/27615-resolved-still-need-help-with-slashes-in-mysql-query/#findComment-126309 Share on other sites More sharing options...
alexcmm Posted November 17, 2006 Author Share Posted November 17, 2006 Nevermind, I got it... the guy who helped me before just left out a character and it took me a while to see it. But his code was right! This place is a great tool for someone who's just getting started. Link to comment https://forums.phpfreaks.com/topic/27615-resolved-still-need-help-with-slashes-in-mysql-query/#findComment-126314 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.