note 121998 added to mysqli-result.fetch-array

From: Date: Fri, 08 Dec 2017 09:08:53 +0000
Subject: note 121998 added to mysqli-result.fetch-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-209337@lists.php.net to get a copy of this message
Please note that under PHP 5.x there appears to be a globally defined variable MYSQL_ASSOC, MYSQL_NUM, or MYSQL_BOTH which is the equivalent of MYSQLI_ASSOC, MYSQLI_NUM, or MYSQLI_BOTH!!! Yet under PHP 7.x this is NOT the case and will cause a failure in trying to retrieve the result set! This can cause severe headaches when trying to find out why you are getting the error: - mysqli_result::fetch_array() expects parameter 1 to be integer, string given in 'Filename' on line 'XX' ---- Server IP: 208.43.231.9 Probable Submitter: 67.162.146.216 ---- Manual Page -- http://php.net/manual/en/mysqli-result.fetch-array.php Edit -- https://master.php.net/note/edit/121998 Del: integrated -- https://master.php.net/note/delete/121998/integrated Del: useless -- https://master.php.net/note/delete/121998/useless Del: bad code -- https://master.php.net/note/delete/121998/bad+code Del: spam -- https://master.php.net/note/delete/121998/spam Del: non-english -- https://master.php.net/note/delete/121998/non-english Del: in docs -- https://master.php.net/note/delete/121998/in+docs Del: other reasons-- https://master.php.net/note/delete/121998 Reject -- https://master.php.net/note/reject/121998 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#209337) next »