PHP : Function Reference : Oracle Functions [deprecated] : ora_open
gabi_vlad
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));
}
?>
|
|