note 18109 added to function.mysql-data-seek
| From: | god at uwaterloo dot ca | Date: | Thu, 10 Jan 2002 18:58:42 +0000 |
| Subject: | note 18109 added to function.mysql-data-seek | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-24634@lists.php.net to get a copy of this message | ||
what you want to do is (to avoid the 0 size error)
//$result is a mysql result
$rows = mysql_num_rows($result);
if($rows>0)
mysql_data_seek($result, 0);
it's that simple
--
http://www.php.net/manual/en/function.mysql-data-seek.php
http://master.php.net/manage/user-notes.php?action=edit+18109
http://master.php.net/manage/user-notes.php?action=delete+18109
http://master.php.net/manage/user-notes.php?action=reject+18109