Alex-Grim Posted December 18, 2007 Share Posted December 18, 2007 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's set up and you\''ve rebooted, log into your desktop and look for the network i' at line 1 The part where it says "you\''ve" is what concerns me. In my code, i tell it to replace a single quote with two single quotes. I don't know where the hell the backlash is coming from, but i'm guessing that php is doing it automatically. How can i stop this, so that it doesn't convert my words into weird characters (see the characters in the article i just posted at the link below to see what i'm talking about). Because that backlash is in there, and because i'm replacing single quotes, php is interpreting the slash as whitespace type stuff, and generating wired characters. http://linuxintro.com/?con=Fstab01 Thanx Quote Link to comment Share on other sites More sharing options...
Alex-Grim Posted December 18, 2007 Author Share Posted December 18, 2007 Stripslashes();, then do the two single quotes Quote Link to comment Share on other sites More sharing options...
corbin Posted December 18, 2007 Share Posted December 18, 2007 I thought it was MSSQL that you escape a single quote with another single quote.... Anyway, you might want to turn off magic quotes if they're on. Or, if you can't turn them off, just clean your get/post/cookie arrays your self if needed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.