note 117718 added to mysqli-stmt.get-result
| From: | chris at hexus dot io | Date: | Tue, 28 Jul 2015 09:43:48 +0000 |
| Subject: | note 117718 added to mysqli-stmt.get-result | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-203203@lists.php.net to get a copy of this message | ||
This method drove me mad for an hour or two because it returns <b>false</b> after
performing a successful query that isn't a SELECT, even though the documentation says
"return <b>FALSE</b> on failure". Nothing failed!
If you're preparing a SELECT statement, expect a result object. Anything else, just use the
properties of the statement object.
I find this library painfully inconsistent.
----
Server IP: 72.52.91.14
Probable Submitter: 37.205.63.53
----
Manual Page -- http://php.net/manual/en/mysqli-stmt.get-result.php
Edit -- https://master.php.net/note/edit/117718
Del: integrated -- https://master.php.net/note/delete/117718/integrated
Del: useless -- https://master.php.net/note/delete/117718/useless
Del: bad code -- https://master.php.net/note/delete/117718/bad+code
Del: spam -- https://master.php.net/note/delete/117718/spam
Del: non-english -- https://master.php.net/note/delete/117718/non-english
Del: in docs -- https://master.php.net/note/delete/117718/in+docs
Del: other reasons-- https://master.php.net/note/delete/117718
Reject -- https://master.php.net/note/reject/117718
Search -- https://master.php.net/manage/user-notes.php