PHP: ora_open - Manual

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

search for in the

ora_parse ora_numrows

Last updated: Fri, 26 Jan 2007

view this page in

# ora_open

(PHP 3, PHP 4, PHP 5 <= 5.1.0RC1)

ora_open -- Opens an Oracle cursor

## Description

resource ora_open ( resource connection )

Opens an Oracle cursor associated with connection.

Returns a cursor index or `FALSE` on failure. Details about the error can be retrieved using the ora_error() and ora_errorcode() functions.

add a note User Contributed Notes
ora_open
gabi_vlad at yahoo dot com
14-Nov-2003 04:28
`Exemple of ora_open, ora_exec, ora_parse
<?php
$utilizator='a';
$parolautl='b';
$baza='baza';
$conn = ora_plogon($utilizator.'@'.$baza, $parolautl) or die ('error'.ora_error());
$v_open = ora_open($conn) or die ('Could not connect.'.ora_error());
$v_parse = ora_Parse($v_open, "SELECT * FROM perioade") or die ('select '.ora_error());
$v_execute = ora_Exec($v_open) or die ('Execution not made.'.ora_error());
print('<table>');
while (Ora_Fetch($v_open)) {
printf('<tr><td>%s</td></tr>',ora_getcolumn ($v_open, 3));
}
?>`
add a note
ora_parse ora_numrows

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST