[prev in list] [next in list] [prev in thread] [next in thread]
List: turba
Subject: [turba] sql driver in turba
From: Jack Bertram <jack () zft ! co ! uk>
Date: 2000-12-19 9:36:20
[Download RAW message or body]
Hi all,
Noticed that the sql driver search function was only returning one row of
results and enclose a one-line patch.
Jack
--- cvs.horde.org.vanilla/horde/turba/lib/Driver/sql.php Tue Dec 5
17:08:16 2000
+++ cvs.horde.org.working/horde/turba/lib/Driver/sql.php Tue Dec 19 09:30:20
2000
@@ -64,17 +64,18 @@
$results = array();
if (isset($result)) {
- $row = $result->fetchRow();
- if (isset($row)) {
- $entry = array();
-
- for ($i = 0; $i < count($fields); $i++) {
- $field = $fields[$i];
- $entry[$field] = $row[$i];
- }
-
- $results[] = $entry;
- }
+ while ($row = $result->fetchRow()) {
+
if (isset($row)) {
+
$entry = array();
+
+
for ($i = 0; $i < count($fields); $i++) {
+
$field = $fields[$i];
+
$entry[$field] = $row[$i];
+
}
+
+
$results[] = $entry;
+
}
+
}
}
return $results;
----- End forwarded message -----
--
Turba mailing list: http://horde.org/turba/
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: turba-unsubscribe@lists.horde.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic