note 69503 added to function.mysqli-multi-query
| From: | slyunderscoremcflyathotmaildotcom at osu1 dot php dot net | Date: | Fri, 08 Sep 2006 00:32:53 +0000 |
| Subject: | note 69503 added to function.mysqli-multi-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-116885@lists.php.net to get a copy of this message | ||
Ive just had exactly the same problem as below trying to execute multiple stored procedures. I
thought i might as well add how to do it the object oriented way.
Instead of putting the one statement:
$mysqli->next_result();
Put two:
$mysqli->next_result();
$mysqli->next_result();
The first statement points (possibly using the term incorrectly) you to the return value. The second
one will point you to the result of the next query.
I hope this makes sense.
----
Server IP: 83.138.144.80
Probable Submitter: 80.5.160.4 (proxied: 81.99.50.42)
----
Manual Page -- http://www.php.net/manual/en/function.mysqli-multi-query.php
Edit -- https://master.php.net/note/edit/69503
Del: integrated -- https://master.php.net/note/delete/69503/integrated
Del: useless -- https://master.php.net/note/delete/69503/useless
Del: bad code -- https://master.php.net/note/delete/69503/bad+code
Del: spam -- https://master.php.net/note/delete/69503/spam
Del: non-english -- https://master.php.net/note/delete/69503/non-english
Del: in docs -- https://master.php.net/note/delete/69503/in+docs
Del: other reasons-- https://master.php.net/note/delete/69503
Reject -- https://master.php.net/note/reject/69503
Search -- https://master.php.net/manage/user-notes.php