cvs: peardoc /en/package/database/db/db-common getassoc.xml getrow.xml /en/package/database/db/db-result fetchinto.xml fetchrow.xml
| From: | Daniel Convissor | Date: | Fri, 16 Apr 2004 15:30:39 +0000 |
| Subject: | cvs: peardoc /en/package/database/db/db-common getassoc.xml getrow.xml /en/package/database/db/db-result fetchinto.xml fetchrow.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-3542@lists.php.net to get a copy of this message | ||
danielc Fri Apr 16 11:30:39 2004 EDT
Modified files:
/peardoc/en/package/database/db/db-common getassoc.xml getrow.xml
/peardoc/en/package/database/db/db-result fetchinto.xml
fetchrow.xml
Log:
Clarify examples.
http://cvs.php.net/diff.php/peardoc/en/package/database/db/db-common/getassoc.xml?r1=1.32&r2=1.33&ty=u
Index: peardoc/en/package/database/db/db-common/getassoc.xml
diff -u peardoc/en/package/database/db/db-common/getassoc.xml:1.32
peardoc/en/package/database/db/db-common/getassoc.xml:1.33
--- peardoc/en/package/database/db/db-common/getassoc.xml:1.32 Fri Apr 16 10:38:25 2004
+++ peardoc/en/package/database/db/db-common/getassoc.xml Fri Apr 16 11:30:37 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.32 $ -->
+<!-- $Revision: 1.33 $ -->
<refentry id="package.database.db.db-common.getassoc">
<refnamediv>
@@ -968,8 +968,6 @@
if (DB::isError($data)) {
die($data->getMessage());
}
-
-// ...
?>
]]>
</programlisting>
@@ -990,8 +988,6 @@
if (DB::isError($data)) {
die($data->getMessage());
}
-
-// ...
?>
]]>
</programlisting>
http://cvs.php.net/diff.php/peardoc/en/package/database/db/db-common/getrow.xml?r1=1.32&r2=1.33&ty=u
Index: peardoc/en/package/database/db/db-common/getrow.xml
diff -u peardoc/en/package/database/db/db-common/getrow.xml:1.32
peardoc/en/package/database/db/db-common/getrow.xml:1.33
--- peardoc/en/package/database/db/db-common/getrow.xml:1.32 Fri Apr 16 11:23:09 2004
+++ peardoc/en/package/database/db/db-common/getrow.xml Fri Apr 16 11:30:38 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.32 $ -->
+<!-- $Revision: 1.33 $ -->
<refentry id="package.database.db.db-common.getrow">
<refnamediv>
@@ -330,8 +330,6 @@
if (DB::isError($data)) {
die($data->getMessage());
}
-
-// ...
?>
]]>
</programlisting>
@@ -353,8 +351,6 @@
if (DB::isError($data)) {
die($data->getMessage());
}
-
-// ...
?>
]]>
</programlisting>
http://cvs.php.net/diff.php/peardoc/en/package/database/db/db-result/fetchinto.xml?r1=1.20&r2=1.21&ty=u
Index: peardoc/en/package/database/db/db-result/fetchinto.xml
diff -u peardoc/en/package/database/db/db-result/fetchinto.xml:1.20
peardoc/en/package/database/db/db-result/fetchinto.xml:1.21
--- peardoc/en/package/database/db/db-result/fetchinto.xml:1.20 Fri Apr 16 11:22:42 2004
+++ peardoc/en/package/database/db/db-result/fetchinto.xml Fri Apr 16 11:30:38 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.20 $ -->
+<!-- $Revision: 1.21 $ -->
<refentry id="package.database.db.db-result.fetchinto">
<refnamediv>
@@ -122,6 +122,8 @@
// Once you have a valid DB object named $db...
$res =& $db->query('SELECT * FROM mytable');
while ($res->fetchInto($row)) {
+ // Assuming DB's default fetchmode is
+ // DB_FETCHMODE_ORDERED
echo $row[0] . "\n";
}
?>
http://cvs.php.net/diff.php/peardoc/en/package/database/db/db-result/fetchrow.xml?r1=1.21&r2=1.22&ty=u
Index: peardoc/en/package/database/db/db-result/fetchrow.xml
diff -u peardoc/en/package/database/db/db-result/fetchrow.xml:1.21
peardoc/en/package/database/db/db-result/fetchrow.xml:1.22
--- peardoc/en/package/database/db/db-result/fetchrow.xml:1.21 Fri Apr 16 11:22:42 2004
+++ peardoc/en/package/database/db/db-result/fetchrow.xml Fri Apr 16 11:30:38 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.21 $ -->
+<!-- $Revision: 1.22 $ -->
<refentry id="package.database.db.db-result.fetchrow">
<refnamediv>
@@ -107,6 +107,8 @@
// Once you have a valid DB object named $db...
$res =& $db->query('SELECT * FROM mytable');
while ($row =& $res->fetchRow()) {
+ // Assuming DB's default fetchmode is
+ // DB_FETCHMODE_ORDERED
echo $row[0] . "\n";
}
?>