note 48228 added to function.odbc-fetch-array
| From: | milesate-clipseconsultingdotcom at osu1 dot php dot net | Date: | Wed, 15 Dec 2004 21:47:17 +0000 |
| Subject: | note 48228 added to function.odbc-fetch-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-81833@lists.php.net to get a copy of this message | ||
In response to Sena's post, odbc_num_rows does not always return a row count. When executing a
query on MS Access it seems to return a row count of -1.
<?php
while(odbc_num_rows($myodbcexec)){
$myarray[] = odbc_fetch_array($myodbcexec);
}
?>
Just something to watch out for when attempting to execute this code.
Miles Phillips
e-Clipse Consulting
----
Manual Page -- http://www.php.net/manual/en/function.odbc-fetch-array.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48228
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48228&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48228&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48228&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48228&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48228&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48228&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48228&report=yes
Search -- http://master.php.net/manage/user-notes.php