note 9075 added to mysql_data_seek
| From: | justus dot brugman at 12move dot nl | Date: | Sat, 14 Oct 2000 18:59:55 +0000 |
| Subject: | note 9075 added to mysql_data_seek | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6487@lists.php.net to get a copy of this message | ||
So you can use it as the equivalent of the reset() call for an array.
eg.
while ($row = mysql_fetch_object($result_01))
{
// code goes here
while ($row = mysql_fetch_object($result_02))
{
// code goes here.
}
mysql_data_seek($result_02,0)
}
Still hoping that there is going to be a better way, like mysql_reset($result).
http://www.php.net/manual/function.mysql-data-seek.php