note 105365 modified in mysqli-result.fetch-assoc by danbrown
| From: | danbrown@php.net | Date: | Fri, 12 Aug 2011 15:36:13 +0000 |
| Subject: | note 105365 modified in mysqli-result.fetch-assoc by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-182451@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:
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.
http://php.net/manual/en/mysqli-result.fetch-assoc.php