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