For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > August 2006 > cvs: phpdoc /en/reference/oci8/functions oci-fetch-array.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /en/reference/oci8/functions oci-fetch-array.xml
Lukas Smith

2006-08-24, 7:57 am

lsmith Thu Aug 24 11:40:46 2006 UTC

Modified files:
/phpdoc/en/reference/oci8/functions oci-fetch-array.xml
Log:
- typo fixes in the examples

http://cvs.php.net/viewvc.cgi/phpdo...7&diff_format=u
Index: phpdoc/en/reference/oci8/functions/oci-fetch-array.xml
diff -u phpdoc/en/reference/oci8/functions/oci-fetch-array.xml:1.6 phpdoc/en/reference/oci8/functions/oci-fetch-array.xml:1.7
--- phpdoc/en/reference/oci8/functions/oci-fetch-array.xml:1.6 Wed Sep 7 09:35:21 2005
+++ phpdoc/en/reference/oci8/functions/oci-fetch-array.xml Thu Aug 24 11:40:46 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
<refentry id="function.oci-fetch-array">
<refnamediv>
<refname>oci_fetch_array</refname>
@@ -121,7 +121,7 @@
$statement = oci_parse ($connection, $query);
oci_execute ($statement);

-while ($row = oci_fetch_array ($statement, OCI_NUM)) {
+while ($row = oci_fetch_array ($statement, OCI_ASSOC)) {
echo $row['ID']."<br>";
echo $row['NAME']."<br>";
echo $row['LOB_FIELD']."<br>"; //this will output "Object id #1"
@@ -145,7 +145,7 @@
$statement = oci_parse ($connection, $query);
oci_execute ($statement);

-while ($row = oci_fetch_array ($statement, OCI_NUM)) {
+while ($row = oci_fetch_array ($statement, (OCI_NUM+OCI_RETURN_LOBS))) {
echo $row[0]."<br>";
echo $row[1]."<br>";
echo $row['LOB_FIELD']."<br>"; //this will output LOB's content
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com