# Open cursor and execute the query |
$csr = &ora_open($lda, $phone_cursor); |
# Assign actual value in the SQL statement |
&ora_bind($csr, 'geoffrey'); |
# Fetch the query results into array variables and print them out |
while (($lname,$fname,$phone,$ptype) =&ora_fetch($csr))) { |
print "The $ptype $phone no. of $fname $lname:$phone\n";} |
&ora_close($csr); # Close a cursor |
&ora_logoff($lda); # disconnect the database server |