note 3209 deleted from function.ora-fetch by philip
| From: | philip@php.net | Date: | Fri, 28 Nov 2008 19:37:15 +0000 |
| Subject: | note 3209 deleted from function.ora-fetch by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-147120@lists.php.net to get a copy of this message | ||
Note Submitter: dmuth at ot dot com
----
Try using ora_fetch_into($cursor, &$results) to get the row into an array. Yes, you need the
"&" sign before the name of the variable to fetch into so that it is passed by
reference and can be modified in the function.
You should also be aware that when calling this function multiple times (like within a loop) that
the array is NOT initialized, which could lead to some "ghosting" of data. You need to
initialize the array yourself, prefarably with the array() function.