summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/lib/acctfuncs.inc.php6
-rw-r--r--web/template/account_search_results.php3
2 files changed, 7 insertions, 2 deletions
diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php
index bb1f6e8..7a18f76 100644
--- a/web/lib/acctfuncs.inc.php
+++ b/web/lib/acctfuncs.inc.php
@@ -323,6 +323,12 @@ function search_results_page($UTYPE,$O=0,$SB="",$U="",$T="",
$dbh = db_connect();
$result = db_query($q, $dbh);
+ $num_rows = mysql_num_rows($result);
+
+ while ($row = mysql_fetch_assoc($result)) {
+ $userinfo[] = $row;
+ }
+
include("account_search_results.php");
return;
}
diff --git a/web/template/account_search_results.php b/web/template/account_search_results.php
index 88d6bb6..f2ed62e 100644
--- a/web/template/account_search_results.php
+++ b/web/template/account_search_results.php
@@ -2,7 +2,6 @@
if (!$result):
print __("No results matched your search criteria.");
else:
- $num_rows = mysql_num_rows($result);
if ($num_rows):
?>
<table class="results">
@@ -20,7 +19,7 @@ else:
</thead>
<?php
$i = 0;
- while ($row = mysql_fetch_assoc($result)):
+ while (list($indx, $row) = each($userinfo)):
if ($i % 2):
$c = "even";
else: