PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ora_fetch> <ora_exec
Last updated: Sat, 24 Mar 2007

view this page in

ora_fetch_into

(PHP 4, PHP 5 <= 5.0.5)

ora_fetch_into — Fetch a row into the specified result array

Popis

int ora_fetch_into ( resource $cursor, array &$result [, int $flags] )

Fetches a row of data into an array.

Seznam parametrů

cursor

An Oracle cursor, opened with ora_open().

result

An array passed by reference. It will be filled with the fetched values.

flags

There are two possible flags. If ORA_FETCHINTO_NULLS is set, columns with NULL values are set in the array; and if the ORA_FETCHINTO_ASSOC flag is set, an associative array is created.

Návratové hodnoty

Returns the number of columns fetched, or FALSE on error.

ChangeLog (záznam změn)

VerzePopis
5.1.0

The oracle extension is deprecated in favor of oci8.

Příklady

Příklad 1408. ora_fetch_into()

<?php
$results
= array();
ora_fetch_into($cursor, $results);
echo
$results[0];
echo
$results[1];
$results = array();
ora_fetch_into($cursor, $results, ORA_FETCHINTO_NULLS|ORA_FETCHINTO_ASSOC);
echo
$results['MyColumn'];
?>

Poznámky

When using oci8 as a replacement for the deprecated oracle extension, consider using:

A fetch function like oci_fetch_array()

Viz také

ora_parse()
ora_exec()
ora_fetch()
ora_do()



add a note add a note User Contributed Notes
ora_fetch_into
There are no user contributed notes for this page.

ora_fetch> <ora_exec
Last updated: Sat, 24 Mar 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites