Please any one resolve my problem in connect with oracle from php
In my computer I’m install oracle 10g express edition and Appserv for php and I download Adodb
When I write this code
<?
include "/path/to/adodb.inc.php";
$db = NewADOConnection("oci8");
$db->Connect("XE", "hr", "hr");
$rs = $db->Execute("select * from employees")
while ($arr = $rs->FetchRow()) {
print_r($arr);
echo "<hr>";
}
?>
The above code is execute without errors but not show any data.
And When I write this code
<?
$db=OCILogOn('hr', 'hr', 'XE');
$rs = OCIParse($db,'select FIRST_NAME from employees');
OCIExecute($rs);
while (OCIFetch($rs))
echo OCIResult($rs,'FIRST_NAME');
?>
It generate error like this Fatal error: Call to undefined function OCILogOn()
Please find where is my problem I prefer in Arabic (only I have problem in writing Arabic in my pc)
