note 60135 deleted from function.mysql-query by nlopess
| From: | nlopess@php.net | Date: | Tue, 27 Dec 2005 18:58:43 +0000 |
| Subject: | note 60135 deleted from function.mysql-query by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-100807@lists.php.net to get a copy of this message | ||
Note Submitter: CrapScreamer
----
Multiple SQL statements are not allowed within a single query. For example:
$sql = "insert into hosts (host) values ('www.google.com'); insert into hosts (host)
values ('www.yahoo.com')";
mysql_query($sql);
will not work. You will need to separate the statements and make multiple queries.
$sql = "insert into hosts (host) values ('www.google.com')";
mysql_query($sql);
$sql = "insert into hosts (host) values ('www.yahoo.com')";
mysql_query($sql)