From 84d21e6f30a2f0219f27942998d295d716751bf6 Mon Sep 17 00:00:00 2001 From: canyonknight Date: Wed, 23 May 2012 15:27:53 -0400 Subject: 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 Signed-off-by: Lukas Fleischer --- web/lib/pkgfuncs.inc.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'web/lib') 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; -- cgit v1.2.3-54-g00ecf