RE: [PHP-DB] Re: characters problem

From: Date: Fri, 17 Dec 2004 14:12:27 +0000
Subject: RE: [PHP-DB] Re: characters problem
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-37736@lists.php.net to get a copy of this message
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@yahoo.com> To: php-db@lists.php.net Subject: [PHP-DB] 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@alienworkers.com> wrote in message news:20041217075430.661.qmail@pb1.pair.com...
$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


« previous php.db (#37736) next »