note 69652 added to function.odbc-fetch-row
| From: | jeffreyjarnot at comcast dot net | Date: | Thu, 14 Sep 2006 00:34:31 +0000 |
| Subject: | note 69652 added to function.odbc-fetch-row | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-117140@lists.php.net to get a copy of this message | ||
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.
while (odbc_fetch_row($rs))
{
do something.
}
ONLY THEN
odbc_close($conn);
----
Server IP: 64.71.164.2
Probable Submitter: 68.41.149.132
----
Manual Page -- http://www.php.net/manual/en/function.odbc-fetch-row.php
Edit -- https://master.php.net/note/edit/69652
Del: integrated -- https://master.php.net/note/delete/69652/integrated
Del: useless -- https://master.php.net/note/delete/69652/useless
Del: bad code -- https://master.php.net/note/delete/69652/bad+code
Del: spam -- https://master.php.net/note/delete/69652/spam
Del: non-english -- https://master.php.net/note/delete/69652/non-english
Del: in docs -- https://master.php.net/note/delete/69652/in+docs
Del: other reasons-- https://master.php.net/note/delete/69652
Reject -- https://master.php.net/note/reject/69652
Search -- https://master.php.net/manage/user-notes.php