note 69652 deleted from function.odbc-fetch-row by danbrown
| From: | danbrown@php.net | Date: | Fri, 25 Jun 2010 13:42:40 +0000 |
| Subject: | note 69652 deleted from function.odbc-fetch-row by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-170422@lists.php.net to get a copy of this message | ||
Note Submitter: jeffreyjarnot at comcast dot net
----
Since I searched on this error way too long, and I finally found my coding issue for
odbc_fetch_row(): ... I wanted to share it.
odbc_fetch_row(): x not a valid ODBC result resource
where x represents a number.
In my case, the close statement was accidently put in an area while I was spinning through records.
Once you close it, while trying to get a row, you can get this msg. thrown.
<?php
while (odbc_fetch_row($rs))
{
// do something.
}
?>
ONLY THEN
<?php odbc_close($conn); ?>