- Code: Select all
<html>
If PHP is working, you will see "Hello World" below:
<hr>
<?php $conn = oci_new_connect('testdb, 'testdb123', 'testdb');
$stid = oci_parse($conn, 'select sysdate from dual');
oci_execute($stid);
print '<table border="1">';
while ($row = oci_fetch_array($stid, OCI_RETURN_NULLS))
{
print '<tr>';
foreach ($row as $item)
{
print '<td>'.($item?htmlentities($item):' ').'</td>';
} print '</tr>'; }
print '</table>'; ?>
</html>
only this line appears : "If PHP is working, you will see "Hello World" below:"
The error log (which i just found shows something like this)
[error] [client 127.0.0.1] PHP Fatal error: Call to undefined function oci_connect()
Any help pls ..