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

Posted by Andy Hassall on 01/26/07 19:59

On 26 Jan 2007 08:52:57 -0800, "Sonnich" <sonnich.jensen@elektrobit.com> wrote:

>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.
[snip]
> while ($row = oci_fetch_array($stid, OCI_RETURN_NULLS))

oci_fetch_array returns the values twice - once with numeric indexes, and
again with the names of the columns as keys.

http://uk.php.net/oci_fetch_array

The default mode is OCI_BOTH - you don't want that.

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

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

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