diff --git a/reference/oci8/functions/oci-execute.xml b/reference/oci8/functions/oci-execute.xml index 413c9e627c..cd69938724 100644 --- a/reference/oci8/functions/oci-execute.xml +++ b/reference/oci8/functions/oci-execute.xml @@ -96,6 +96,33 @@ &reftitle.examples; + + + <function>oci_execute</function> for queries + +\n"; +while ($row = oci_fetch_array($statement, OCI_ASSOC+OCI_RETURN_NULLS)) { + echo "\n"; + foreach ($row as $item) { + echo " ".($item!==null?htmlentities($item, ENT_QUOTES):" ")."\n"; + } + echo "\n"; +} +echo "\n"; + +?> +]]> + + + <function>oci_execute</function> without specifying a mode example @@ -191,6 +218,15 @@ for ($i = 1; $i <= oci_num_fields($statement); ++$i) { commit any uncommitted transaction. + + + Because the oci_execute function generally + sends the statement to the + database, oci_execute can identify some + statement syntax errors that the lightweight, + local oci_parse function does not. + + In PHP versions before 5.0.0 you must