Help! OCIFetchInto does not work at all
| From: | Grishick | Date: | Thu, 17 May 2001 02:19:40 +0000 |
| Subject: | Help! OCIFetchInto does not work at all | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-53143@lists.php.net to get a copy of this message | ||
I'm tryibg to execute a simple query on Oracle:
$cn=OCILogon($DB_USER, $DB_PASSWORD, $DB_NAME);
$stmt=OCIParse($cn,"select * from grisha");
OCIExecute($stmt);
OCIFetchInto ($stmt, &$row, OCI_ASSOC);
But $row is always empty and OCIFetchInto returns nothing. The table is not
empty, I can execute the same query directly on SQL*Plus Worksheet and it
returns rows, but with PHP it returns nothing.
What is wrong in this code?
Grishick.
grisha@kasenna.com