dbs Mon Oct 3 11:49:32 2005 EDT
Modified files:
/phpdoc/en/reference/ibm_db2/functions db2-fetch-assoc.xml
db2-fetch-both.xml
Log:
Fix syntax errors in examples.
http://cvs.php.net/diff.php/phpdoc/en/reference/ibm_db2/functions/db2-fetch-assoc.xml?r1=1.5&r2=1.6&ty=u
Index: phpdoc/en/reference/ibm_db2/functions/db2-fetch-assoc.xml
diff -u phpdoc/en/reference/ibm_db2/functions/db2-fetch-assoc.xml:1.5
phpdoc/en/reference/ibm_db2/functions/db2-fetch-assoc.xml:1.6
--- phpdoc/en/reference/ibm_db2/functions/db2-fetch-assoc.xml:1.5 Tue Jul
12 13:39:24 2005
+++ phpdoc/en/reference/ibm_db2/functions/db2-fetch-assoc.xml Mon Oct 3
11:49:32 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc.
-->
<refentry id="function.db2-fetch-assoc">
<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_assoc($result)) {
+while ($row = db2_fetch_assoc($stmt)) {
printf ("%-5d %-16s %-32s %10s\n",
$row['ID'], $row['NAME'], $row['BREED'], $row['WEIGHT']);
}
http://cvs.php.net/diff.php/phpdoc/en/reference/ibm_db2/functions/db2-fetch-both.xml?r1=1.5&r2=1.6&ty=u
Index: phpdoc/en/reference/ibm_db2/functions/db2-fetch-both.xml
diff -u phpdoc/en/reference/ibm_db2/functions/db2-fetch-both.xml:1.5
phpdoc/en/reference/ibm_db2/functions/db2-fetch-both.xml:1.6
--- phpdoc/en/reference/ibm_db2/functions/db2-fetch-both.xml:1.5 Tue Jul
12 13:39:24 2005
+++ phpdoc/en/reference/ibm_db2/functions/db2-fetch-both.xml Mon Oct 3
11:49:32 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc.
-->
<refentry id="function.db2-fetch-both">
<refnamediv>
@@ -79,9 +79,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_both($result)) {
+while ($row = db2_fetch_both($stmt)) {
printf ("%-5d %-16s %-32s %10s\n",
$row['ID'], $row[0], $row['BREED'], $row[3]);
}