Date: 08/31/00
- Next message: Tyson Lloyd Thwaites: "Re: [PHP-DB] problem using odbc_fetch_row to count rows"
- Previous message: Serkan AKCIN: "[PHP-DB] PHP and Apache Authentication..."
- In reply to: Tyson Lloyd Thwaites: "[PHP-DB] odbc_num_rows returns -1...any alternatives?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Tyson Lloyd Thwaites: "Re: [PHP-DB] problem using odbc_fetch_row to count rows"
- Previous message: Serkan AKCIN: "[PHP-DB] PHP and Apache Authentication..."
- In reply to: Tyson Lloyd Thwaites: "[PHP-DB] odbc_num_rows returns -1...any alternatives?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

