note 22030 deleted from function.mysql-query by didou

From: Date: Sat, 17 May 2003 18:50:58 +0000
Subject: note 22030 deleted from function.mysql-query by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-48205@lists.php.net to get a copy of this message
Note Submitter: Don@NedServ.org I found out that PHP/MySQL doesn't handle a query properly if there is a newline after the end of the query. For example: mysql_query ("INSERT INTO table (value) VALUES ('value'); "); Does NOT work on my installation on Linux. and mysql_query ("INSERT INTO table (value) VALUES ('value');"); DOES work. I haven't done extensive testing, but it took me quite some time to figure that one out. I hope to save ppl some time by adding this note.

« previous php.notes (#48205) next »