ok, i tried what you told me but it didn't work ...
but, this is what i figured out and it works ...
<?php
$connection = OCILogon("blah","blah","blah") or die ("getdata.php could not connect to localhost.\n");
$sql_statement = OCIParse($connection, "SELECT SOME_ROW FROM SOME_TABLE") or die ("Couldn't parse statement.\n");
OCIDefineByName ($sql_statement, "SOME_ROW", $SOME_ROW);
OCIExecute($sql_statement) or die ("Couldn't execute statement.\n");
echo "<TABLE BORDER=1>";
echo "<TR><TH>SOME ROW</TH></TR>";
while (OCIFetch($sql_statement)) {
echo "<TR>";
echo "<TD>$id</TD>";
}
First of all I wasn't using my parsed statement in the OCIFetch function.
I got rid of the OCIResult function and defined my parsed statement with the OCIDefineByName function.
Then while(OCIFetch) ...
I echo the $SOME_ROW variable.
Also, note that you have to define your parsed statement before executing it and I put the variable in a HTML table to make it look neater.
This works like magic .. i love it !!
Thomas, thanks for your help