note 105365 added to mysqli-result.fetch-assoc

From: Date: Fri, 12 Aug 2011 00:58:31 +0000
Subject: note 105365 added to mysqli-result.fetch-assoc
Groups: php.notes 
Request: Send a blank email to php-notes+get-182437@lists.php.net to get a copy of this message
IMPORTANT NOTE: If you were used to using code like this: while(false !== ($row = mysql_fetch_assoc($result)) { ... } You must change it to this for mysqli: while(null !== ($row = mysqli_fetch_assoc($result)) { ... } The former will cause your script to run until max_execution_time is reached. ---- Server IP: 69.147.83.197 Probable Submitter: 98.172.80.203 ---- Manual Page -- http://www.php.net/manual/en/mysqli-result.fetch-assoc.php Edit -- https://master.php.net/note/edit/105365 Del: integrated -- https://master.php.net/note/delete/105365/integrated Del: useless -- https://master.php.net/note/delete/105365/useless Del: bad code -- https://master.php.net/note/delete/105365/bad+code Del: spam -- https://master.php.net/note/delete/105365/spam Del: non-english -- https://master.php.net/note/delete/105365/non-english Del: in docs -- https://master.php.net/note/delete/105365/in+docs Del: other reasons-- https://master.php.net/note/delete/105365 Reject -- https://master.php.net/note/reject/105365 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#182437) next »