note 105365 modified in mysqli-result.fetch-assoc by googleguy

From: Date: Sun, 14 Apr 2013 19:11:03 +0000
Subject: note 105365 modified in mysqli-result.fetch-assoc by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-194475@lists.php.net to get a copy of this message
IMPORTANT NOTE: If you were used to using code like this: <?php while(false !== ($row = mysql_fetch_assoc($result))) { //... } ?> You must change it to this for mysqli: <?php while(null !== ($row = mysqli_fetch_assoc($result))) { //... } ?> The former will cause your script to run until max_execution_time is reached. --was-- IMPORTANT NOTE: If you were used to using code like this: <?php while(false !== ($row = mysql_fetch_assoc($result)) { //... } ?> You must change it to this for mysqli: <?php while(null !== ($row = mysqli_fetch_assoc($result)) { //... } ?> The former will cause your script to run until max_execution_time is reached. http://php.net/manual/en/mysqli-result.fetch-assoc.php

« previous php.notes (#194475) next »