Re: characters problem
| From: | Nadim Attari | Date: | Fri, 17 Dec 2004 08:01:33 +0000 |
| Subject: | Re: characters problem | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-37733@lists.php.net to get a copy of this message | ||
> $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