note 127673 added to mysqli-stmt.fetch

From: Date: Tue, 27 Sep 2022 12:21:41 +0000
Subject: note 127673 added to mysqli-stmt.fetch
Groups: php.notes 
Request: Send a blank email to php-notes+get-219621@lists.php.net to get a copy of this message
Beware of the odd return value true : fetch succeeded null: is no more data false: error condition. The sample code using a while loop will coalesce null and false where a false condition should really be treated as an exception. ---- Server IP: 45.112.84.4 Probable Submitter: 185.85.3.173 (proxied: 46.140.241.51) ---- Manual Page -- https://php.net/manual/en/mysqli-stmt.fetch.php Edit -- https://main.php.net/note/edit/127673 Del: integrated -- https://main.php.net/note/delete/127673/integrated Del: useless -- https://main.php.net/note/delete/127673/useless Del: bad code -- https://main.php.net/note/delete/127673/bad+code Del: spam -- https://main.php.net/note/delete/127673/spam Del: non-english -- https://main.php.net/note/delete/127673/non-english Del: in docs -- https://main.php.net/note/delete/127673/in+docs Del: other reasons-- https://main.php.net/note/delete/127673 Reject -- https://main.php.net/note/reject/127673 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#219621) next »