PHP : Function Reference : Oracle Functions : oci_parse
Examples ( Source code ) » oci_parse
<?
$c = oci_connect("hr", "hrpwd", "//localhost/XE");
if (!$c) {
$e = oci_error(); // No parameter passed
///Handling OCI8 Errors
var_dump($e);
}
///For parse errors, pass the connection resource:
---------
$s = oci_parse($c, "select city from locations");
if (!$s) {
$e = oci_error($c); // Connection handle passed
var_dump($e);
}
?>
|