Hi I managed to find the following code written by someone else (can't remember how I obtained) and able to work with Oracle.
Just wonder how come it always display "Resource id #3..." Anyway of getting rid of it.
Thanks.
<?php
print "<HTML><PRE>";
$db = "bmcs";
$c1 = ocilogon("scott","scott1i",$db);
// $c2 = ocilogon("scott","scott1i",$db);
function create_table($conn)
{ $stmt = ociparse($conn,"create table scott.hallo (test varchar2(64))");
ociexecute($stmt);
echo $conn." created table\n\n";
}
create_table($c1);