MySQL

From: Date: Tue, 09 Nov 2004 16:29:25 +0000
Subject: MySQL
Groups: php.general 
Request: Send a blank email to php-general+get-201624@lists.php.net to get a copy of this message
Hi all, Please tell me how to send a null string to be inserted in a MySQL database. If I do something like: $string = null; mysql_query("insert ignore into table(field) values($string)"); It gives me an error. In fact, I have multiple fields to insert, and the error just tell me that was an error at ... and prints the variables I want to imput and I don't know what could be the problem. Do I need to addslashes(), or what else? Thank you. Teddy

« previous php.general (#201624) next »