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>
This commit is contained in:
canyonknight 2012-05-23 15:27:53 -04:00 committed by Lukas Fleischer
parent 71f2efd7af
commit 84d21e6f30
2 changed files with 8 additions and 4 deletions

View file

@ -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;