Re: mysql error or PHP

From: Date: Mon, 15 Jul 2002 10:21:41 +0000
Subject: Re: mysql error or PHP
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-107684@lists.php.net to get a copy of this message
Justin French wrote:
try add_slashes($string) before inserting into the database, or turn on magic quotes in php.ini
Or Mysql_Escape_String() http://www.php.net/manual/en/function.mysql-escape-string.php Or Mysql_Real_Escape_String() http://www.php.net/manual/en/function.mysql-real-escape-string.php Regards, Johan

« previous php.general (#107684) next »