You are here: Re: New to OCI - double results? « PHP Programming Language « IT news, forums, messages
Re: New to OCI - double results?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация