|
Posted by Mladen Gogala on 02/23/07 05:06
On Mon, 29 Jan 2007 09:03:12 -0800, Sonnich wrote:
> I got this to work using
> while ($row = oci_fetch_row ($stid))
>
> But not I get another problem, see comment here:
>
> $stid = oci_parse($connX, $sql2);
> if (!$stid)
> {
> $e = oci_error($connX);
> echo htmlentities($e['message'])."<br>";
> }
> else
> {
> $r = oci_execute($stid, OCI_DEFAULT);
> // instead of going ahead, it still gives the error here. How do I
> stop that.
By using the standard PHP error suppression operator:
$r = @oci_execute($stid, OCI_DEFAULT);
I would advise against doing that, but it is a possibility. OCI does
so called deferred parse, which means that parse and execute steps are
bundled into a single step. When your statement fails, it's usually a
serious situation.
--
http://www.mladen-gogala.com
Navigation:
[Reply to this message]
|