note 42675 added to function.odbc-fetch-array
| From: | tmjac2 at student dot monash dot edu dot au | Date: | Wed, 26 May 2004 06:34:16 +0000 |
| Subject: | note 42675 added to function.odbc-fetch-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-70094@lists.php.net to get a copy of this message | ||
If you are coming from an Oracle php script and want some help converting for odbc, instead of the
oci commands...
So how do you use this you ask?
I found that for fetch array it is very important to get the parameters and what it returns correct,
and you will spend forever figuring out how to phrase this.
So this is how I used odbc_fetch_array
while ($data = odbc_fetch_array($sth)) {
print_r($data);
with $data being an array of results
and $sth, being my statement handler/dsn
----
Manual Page -- http://www.php.net/manual/en/function.odbc-fetch-array.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42675
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42675&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42675&report=yes
Search -- http://master.php.net/manage/user-notes.php