note 60135 added to function.mysql-query
| From: | CrapScreamer at osu1 dot php dot net | Date: | Tue, 27 Dec 2005 18:50:13 +0000 |
| Subject: | note 60135 added to function.mysql-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-100806@lists.php.net to get a copy of this message | ||
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)
----
Manual Page -- http://www.php.net/manual/en/function.mysql-query.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+60135
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60135&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60135&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60135&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60135&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60135&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60135&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60135&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+60135&report=yes
Search -- http://master.php.net/manage/user-notes.php