Re: [PHP-DB] odbc_num_rows returns -1...any alternatives? From: Andreas Karajannis (Andreas.Karajannis <email protected>)
Date: 08/31/00

As stated in the manual, odbc_num_rows() returns the number of affected
rows for DML statements. Only very few drivers are able to return the
number of rows in a select statement.

If you absolutely need the rowcount, you can either issue a "select
count(*)..." or fetch all available rows in advance.

-Andreas
  

-- 
Andreas Karajannis
GMD National Research Center for Information Technology
Schloss Birlinghoven, D-53754 Sankt Augustin
Phone +49 2241 142948

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>