grandpa

msg:1301885 | 5:08 am on May 31, 2005 (gmt 0) |
To remove slashes you may find the stripslashes() [us3.php.net] function useful.
|
ironik

msg:1301886 | 5:10 am on May 31, 2005 (gmt 0) |
At a guess you might have magic quotes enabled, but the slashes are forward instead of back..? maybe someone can explain that one... At a guess, I'd say have a go using mysql_escape_string() and see if that better prepares the string for use in your SQL statment.
|
alcheme

msg:1301887 | 5:20 am on May 31, 2005 (gmt 0) |
Hi Grandpa, I have tried different versions of stripslashes() like this one below but it did not work if I did a test: stripslashes ($comments); $sql = "INSERT INTO data (comments) VALUES ('$comments')";
|
alcheme

msg:1301888 | 5:24 am on May 31, 2005 (gmt 0) |
Hi Ironik, Oops I meant back slashes '\' not forward slashes '/. ~Shane
|
|