dbs             Mon Oct  3 11:47:34 2005 EDT

  Modified files:              
    /phpdoc/en/reference/ibm_db2/functions      db2-fetch-array.xml 
  Log:
  Fix syntax error in example.
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/ibm_db2/functions/db2-fetch-array.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc/en/reference/ibm_db2/functions/db2-fetch-array.xml
diff -u phpdoc/en/reference/ibm_db2/functions/db2-fetch-array.xml:1.3 
phpdoc/en/reference/ibm_db2/functions/db2-fetch-array.xml:1.4
--- phpdoc/en/reference/ibm_db2/functions/db2-fetch-array.xml:1.3       Tue Jul 
12 13:39:24 2005
+++ phpdoc/en/reference/ibm_db2/functions/db2-fetch-array.xml   Mon Oct  3 
11:47:33 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 <!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc. 
-->
 <refentry id="function.db2-fetch-array">
  <refnamediv>
@@ -73,9 +73,9 @@
 
 $sql = "SELECT id, name, breed, weight FROM animals ORDER BY breed";
 $stmt = db2_prepare($conn, $sql);
-$result = db2_execute($stmt, $sql);
+$result = db2_execute($stmt);
 
-while ($row = db2_fetch_array($result)) {
+while ($row = db2_fetch_array($stmt)) {
     printf ("%-5d %-16s %-32s %10s\n", 
         $row[0], $row[1], $row[2], $row[3]);
 }

Reply via email to