diff options
author | canyonknight <canyonknight@gmail.com> | 2012-05-23 15:27:53 -0400 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-07-06 11:26:56 +0200 |
commit | 84d21e6f30a2f0219f27942998d295d716751bf6 (patch) | |
tree | 0ba01d4174c5a5867acfd6aa98392d6c252d08ac /web/lib | |
parent | 71f2efd7af4b32eb514c134769fc969e5e64bd2b (diff) |
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.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php index 2265c76..979d74b 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; |