|
Posted by Rik on 01/26/07 19:58
Sonnich <sonnich.jensen@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?
>
> while ($row =3D oci_fetch_array($stid, OCI_RETURN_NULLS))
http://www.php.net/oci_fetch_array
"returns an array with both associative and numeric indices."
So, tell it which one to use either associative:
oci_fetch_assoc($stid, OCI_RETURN_NULLS)
Or numerical:
oci_fetch_row($stid, OCI_RETURN_NULLS)
If you don't need the indexes, the last one seems to be the fastest.
-- =
Rik Wasmus
Navigation:
[Reply to this message]
|