note 128432 added to mysqli-result.fetch-assoc

From: Date: Wed, 26 Apr 2023 08:35:34 +0000
Subject: note 128432 added to mysqli-result.fetch-assoc
Groups: php.notes 
Request: Send a blank email to php-notes+get-220387@lists.php.net to get a copy of this message
There is a difference between MariaDB and MySQL(>5.4) whether the input parameter (mysqli object) has data or is empty (it comes from a previus query). -MariaDB: you get an exception: Fatal error: Uncaught TypeError: mysqli_fetch_assoc(): Argument #1 ($result) must be of type mysqli_result -MySQL: you can continue, in spite of not having data in the mysqli object. ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.13.130 (proxied: 88.12.121.14) ---- Manual Page -- https://php.net/manual/en/mysqli-result.fetch-assoc.php Edit -- https://main.php.net/note/edit/128432 Del: integrated -- https://main.php.net/note/delete/128432/integrated Del: useless -- https://main.php.net/note/delete/128432/useless Del: bad code -- https://main.php.net/note/delete/128432/bad+code Del: spam -- https://main.php.net/note/delete/128432/spam Del: non-english -- https://main.php.net/note/delete/128432/non-english Del: in docs -- https://main.php.net/note/delete/128432/in+docs Del: other reasons-- https://main.php.net/note/delete/128432 Reject -- https://main.php.net/note/reject/128432 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220387) next »