"; 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 "\n\n \n"; for ($i = 0; $i < $nrows; $i++ ) { echo "\n"; echo ""; echo ""; echo ""; echo "\n"; } echo "
IDName Status
" . $results["ID"][$i] . "" . $results["NAME"][$i] . "" . $results["STATUS"][$i] . "
Number of Rows: $nrows
"; echo "
If you see data, then it works!
\n"; ?>