note 11806 added to function.ora-do.php
| From: | vic at clockwerk dot com | Date: | Thu, 08 Mar 2001 00:56:23 +0000 |
| Subject: | note 11806 added to function.ora-do.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12019@lists.php.net to get a copy of this message | ||
Ora_Do is really a quick combination of ORA_OPEN, Ora_Parse, Ora_Exec and Ora_Fetch. You must open a
cursor, then parse and execute to get a valid result set. Ora_Do handles the Open call in addition
to the commands listed above. So the Long form of Ora_Do would be:
$cursor = Ora_Open($conn);
$successtest = Ora_Parse($cursor,<SQL statement>,$defer);
$successtest = Ora_Exec($cursor);
$successtest = Ora_Fetch($cursor);
I use the long form and replace Ora_Fetch with Ora_Fetch_Into because I can't find the returned
row from Ora_Do.
http://www.php.net/manual/en/function.ora-do.php