Jon W
03-04-2009, 02:35 AM
mysql_query("UPDATE notice SET notice=\"$notice\"") or die('Server Error: ' . mysql_error());
This query works fine when I put normal text, like "abcdefgjijklmnopqrstuvwxyx" and 12345678990" but when I use the quotes I get this error: Server Error: 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 '"This site is under construction.""' at line 1. And its because of the quotes. How do you get around this, how do I fix this?
Thanks,
Jon W
This query works fine when I put normal text, like "abcdefgjijklmnopqrstuvwxyx" and 12345678990" but when I use the quotes I get this error: Server Error: 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 '"This site is under construction.""' at line 1. And its because of the quotes. How do you get around this, how do I fix this?
Thanks,
Jon W