hi guyz
I have installed PHP-Apache-Oracle 8i as the combination for my small website. OS is Windows 2000 Advanced Server.
I have successfully connected to Oracle from PHP through Apache....but the problem is i am not able to see the results of my query.
Can somebody tell me what is the mistake that i have done here.
Thx in advance
<?php
$connection = OCILogon("scott","tiger","test");
$stmt = OCIParse($connection, "select user_name,mit_user_no from user_table");
OCIExecute($stmt);
print "<TABLE CELLSPACING=\"0\" CELLPADDING=\"3\" BORDER=\"1\">\n";
print "<TR>";
print "<TH>USERNAME</TH>";
print "<TH>MIT_USER_NO</TH>";
print "</TR>\n";
while(OCIFetch($stmt))
{
print " <TR>\n";
print " <TD>" . OCIResult($stmt, "user_name") . "</TD>\n";
print " <TD>" . OCIResult($stmt, "mit_user_no") . "</TD>\n";
print " </TR>\n";
}
print "\n";
OCIFreeStatement($stmt);
OCILogoff($connection);
?>
i am getting just blank table with the captions username and mit_user_no....but the surprising thing is that if i check the source code from IE...30 blank <TD></TD> is created which is the exact record count of this table which i am querying.
Regardz
Qwest