note 2047 deleted from function.odbc-num-rows by jimw
| From: | jimw@php.net | Date: | Mon, 17 Dec 2001 22:31:35 +0000 |
| Subject: | note 2047 deleted from function.odbc-num-rows by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23026@lists.php.net to get a copy of this message | ||
If your driver return after SELECT -1 you can replace
for ($i=1;$i<=odbc_num_rows($res);$i++){...} //now loop will not run
by this code
for ($i=1;odbc_fetch_row($res,$i);$i++){...}