Hi all,
I am facing a problem with this code on windows 2000, It is working fine in solories.
I am trying to retreving the results from simple query from oracle 8.1.7. The other function of oci i.e ocifetchstatement() is working fine(some other case).I want row-oriented ocifetchstatement, that is the reson i am using OCIFETCHINFO(). Whenever i am trying to implement by using bellow code i am getting some junk value in resultent array with windows. Can i have any clue??

Thanking you,
Suresh

$fptr1 = fopen("E:/Program Files/Apache Group/Apache/htdocs/waf/test.txt", "a+");
//$o1=array();
$i=0;
$c1 = ociplogon("logdata","logdata","ieds");
$stmt1 = OCIParse($c1,"select * from circuit_alarm_data");
OCIExecute($stmt1);
$arr[] = '';
$o1[$i] = '';
while (OCIFetchInto($stmt1,&$arr,OCI_ASSOC)) {
$o1[$i] = $arr;
$i++;
fwrite($fptr1, "\n-------".$i.$o1[$i]); //added on 20/02
};
OCIFreeStatement($stmt1);
OCILogoff($c1);

    Write a Reply...