It's simple.
The mysql_fetch_array($result)  function will return a "false" value.

example :
if ( !mysql_fetch_array($result) ) {
// Then do what u want
}
----- Original Message ----- 
From: "Natividad Castro" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 29, 2002 5:58 PM
Subject: [PHP-DB] end of file


> Hi to all,
> how can I handle when the recordset reach the last record?
> is it possible to use eof?
> e.g. if there is no more record, "do something"
> 
> Thanks in advanced
> Nato
> 
> 
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to