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

Posted by Sonnich on 01/29/07 17:03

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.
// the error is correctly catched here anyway, but I'd like to have it
only. Meaning no default response when the query fails.
if(!$r)
{
$e = oci_error($stid);
if(strpos($e['message'],"CONNECT BY loop")!==false)
echo "<font class=\"error\">Loop error with item:
$Item[$i]</font><p>";
else
echo htmlentities($e['message'])."<br>";
}
else
{



On Jan 26, 6:52 pm, "Sonnich" <sonnich.jen...@elektrobit.com> wrote:
> Hello there
>
> I'm trying to work with the example for OCI... and the $row returns 2
> values, the same twice, but my query only have one... code below.
>
> Can anyone explain?
>
> BR
> S
>

 

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

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