The only other code worth mentioning is the SQL itself which snags the data...
$sql = "SELECT name, num FROM table WHERE name = '$name' and rownum >= '0' order by name, num ASC";
// create connection
$connection = OCILogon("user","pass","server")
or die("Couldn't logon.");
// parse SQL statement
$sql_statement = OCIParse($connection,$sql)
or die("Couldn't parse statement.");
// execute SQL query
OCIExecute($sql_statement)
or die("Couldn't execute statement.");
if (!$sql_statement) {
echo "<P>Couldn't get num!!";