note 18109 deleted from function.mysql-data-seek by nlopess
| From: | nlopess@php.net | Date: | Tue, 27 Jan 2004 18:08:03 +0000 |
| Subject: | note 18109 deleted from function.mysql-data-seek by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-64274@lists.php.net to get a copy of this message | ||
Note Submitter: god@uwaterloo.ca
----
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