With Interbase functions I have to make 2 select. "SELECT count(*).. to count valid record and "SELECT * .. to extract the records There is a simple solutions to have unique Select ? I use Pgsql too but here I Have the pg_numrows variable. Someone sau to me: just make the "SELECT * .. to extract the records and then get the rownumber by $number_of_rows=count($selected_array); Yes, BUT I use get_object ! -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]