try echoing out the sql to see what it looks like, you may also have
magic_quotes turned on...turn it off
bastien
From: "Panos Yahoo" <grshadowgr@xxxxxxxxx>
To: php-db@xxxxxxxxxxxxx
Subject: Re: characters problem
Date: Fri, 17 Dec 2004 11:20:01 +0200
It doesn't work :( I also read on the php.net for addslashes and
stripslashes but still nothin.... :( Any other ideas guyz?
Thx
Panos
"Nadim Attari" <nadim@xxxxxxxxxxxxxxxx> wrote in message
news:20041217075430.661.qmail@xxxxxxxxxxxxxxx
>> $myquery="INSERT INTO `$table` (`comments`) VALUES ('$mycomments')";
>
> $mycomments = addslashes($mycomments);
> $myquery = "INSERT INTO $table (comments) VALUES ('$mycomments')";
>
> See:
>
> http://www.php.net/addslashes
>
> Hope it solves the problem.
>
> nadim attari
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php