ora_exec
(PHP 3, PHP 4 )
ora_exec -- Execute a parsed statement on an Oracle cursor
Description
bool ora_exec ( resource cursor)
ora_exec() execute the parsed statement cursor, already
parsed by ora_parse().
Returns TRUE on success or FALSE on failure. Details about
the error can be retrieved using the ora_error() and ora_errorcode()
functions.
See also ora_parse(), ora_fetch(), and ora_do().
ora_fetch_into
(PHP 3, PHP 4 )
ora_fetch_into -- Fetch a row into the specified result
array
Description
int ora_fetch_into ( resource cursor, array result [, int
flags])
Fetches a row of data into an array. The flags has two flag
values: if the ORA_FETCHINTO_NULLS flag 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.
Returns the number of columns fetched.
Example 1. 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'];
?>
See also ora_parse(),ora_exec(), ora_fetch(), and ora_do().