"; if (!$db_conn) { echo "Error in connecting "; } $cmdstr = "select * from students"; $parsed = ociparse($db_conn, $cmdstr); ociexecute($parsed); $nrows = ocifetchstatement($parsed, $results); echo "
Oracle PHP Test - The Table Students
"; echo "
\n
\n"; echo "
ID
\n
Name
\n
Status
\n"; for ($i = 0; $i < $nrows; $i++ ) { echo "
\n"; echo "
" . $results["ID"][$i] . "
"; echo "
" . $results["NAME"][$i] . "
"; echo "
" . $results["STATUS"][$i] . "
"; echo "
\n"; } echo "
Number of Rows: $nrows
"; echo "
If you see data, then it works!