summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2012-05-23 21:27:53 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-07-06 11:26:56 +0200
commit84d21e6f30a2f0219f27942998d295d716751bf6 (patch)
tree0ba01d4174c5a5867acfd6aa98392d6c252d08ac /web/lib
parent71f2efd7af4b32eb514c134769fc969e5e64bd2b (diff)
downloadaur-84d21e6f30a2f0219f27942998d295d716751bf6.tar.gz
aur-84d21e6f30a2f0219f27942998d295d716751bf6.tar.xz
pkg_search_results.php: Pull out DB code
* Move DB code from pkg_search_results.php to already existing function in pkgfuncs.inc.php * Centralization of DB code important in a future transition to PDO interface Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/pkgfuncs.inc.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index 2265c767..979d74b5 100644
--- a/web/lib/pkgfuncs.inc.php
+++ b/web/lib/pkgfuncs.inc.php
@@ -602,6 +602,11 @@ function pkg_search_page($SID="", $dbh=NULL) {
}
include('pkg_search_form.php');
+
+ while ($row = mysql_fetch_assoc($result)) {
+ $searchresults[] = $row;
+ }
+
include('pkg_search_results.php');
return;