note 56167 added to function.mysqli-query
| From: | ole_v2atdsldotpipexdotcom at osu1 dot php dot net | Date: | Thu, 25 Aug 2005 15:22:51 +0000 |
| Subject: | note 56167 added to function.mysqli-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-94185@lists.php.net to get a copy of this message | ||
SENDING MULTIPLE QUERIES
use mysqli_multi_query()
This is ilegal:
<?
// assume $db is a sucessful connection to database
$result = mysqli_query($db,'SELECT * FROM sometable; SHOW DATABASES;'); // always false
if ($result) {
// code here will never execute
}
?>
----
Manual Page -- http://www.php.net/manual/en/function.mysqli-query.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+56167
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56167&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56167&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56167&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56167&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56167&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56167&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+56167&report=yes
Search -- http://master.php.net/manage/user-notes.php