connectoci8.php
$c = oci_connect('hr', 'hrpwd', '//localhost/XE');
$s = oci_parse($c, 'select city from locations');
oci_execute($s);
while ($res = oci_fetch_array($s)) {
echo $res['CITY'] . "
";
}
oci_close($c);
?>
When invoked in a web browser, it connects to Oracle as the demonstration user hr of the
Oracle XE database running on the local machine
Subscribe to:
Post Comments (Atom)
0 Response to 'An example script that finds city names from the locations table using OCI8'
Post a Comment