Re: OCI8 error problems
| From: | Thies C. Arntzen | Date: | Sun, 18 Feb 2001 12:02:10 +0000 |
| Subject: | Re: OCI8 error problems | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-6724@lists.php.net to get a copy of this message | ||
On Thu, Feb 15, 2001 at 10:07:23AM -0500, Brian Lalor wrote:
> On Thu, 15 Feb 2001, Thies C. Arntzen wrote:
>
> > how should it?
> >
> > you would have to pass in the correct statement|connection
> > handle - elsewise it simply won't work!
>
> Ok, that was a cobbled-up code snippet; replace $this->conn with $conn,
> and $statement with $s.
>
> It still doesn't work...
<?
$db = ocilogon('tc','tc');
$stmt = ociparse($db,"insert into uni values (1)");
$success = @ociexecute($stmt);
if (! $success) {
var_dump(ocierror($stmt));
}
?>
works for me.
tc