note 22285 added to function.odbc-columns
| From: | josh at engledental dot com | Date: | Wed, 12 Jun 2002 21:34:14 +0000 |
| Subject: | note 22285 added to function.odbc-columns | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31762@lists.php.net to get a copy of this message | ||
(PHP4.2.1, Win2k, MSSQL 2K)
The result id returned from this function does not appear to behave exactly the same as a result id
returned from a query.
I get all sorts of errors when I try to use subsequent odbc functions on the result id, such as:
odbc_fetch_into - This function only seems to work if I don't specify a row number or if the
row number = 0.
odbc_fetch_row - This function will not return a row from the result set. Under some scenarios, I
am able to use it in a while loop, but its seems buggy. Hence, my odbc_num_of_rows function (hack
to replace the non-functional odbc_num_rows function) also doesn't work.
I recommend dumping the results into an array immediately and freeing the result id created by this
function.
ps - If anyone has any further insight or workarounds, I would appreciate them.
--
http://www.php.net/manual/en/function.odbc-columns.php
http://master.php.net/manage/user-notes.php?action=edit+22285
http://master.php.net/manage/user-notes.php?action=delete+22285
http://master.php.net/manage/user-notes.php?action=reject+22285