mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
71f2efd7af
commit
84d21e6f30
2 changed files with 8 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue