mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Get db connection for accounts search results.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
3b4662a58e
commit
1529020e79
1 changed files with 2 additions and 0 deletions
|
@ -426,6 +426,8 @@ function search_results_page($UTYPE,$O=0,$SB="",$U="",$T="",
|
||||||
$search_vars[] = "SB";
|
$search_vars[] = "SB";
|
||||||
$q.= "LIMIT ". $OFFSET . ", " . $HITS_PER_PAGE;
|
$q.= "LIMIT ". $OFFSET . ", " . $HITS_PER_PAGE;
|
||||||
|
|
||||||
|
$dbh = db_connect();
|
||||||
|
|
||||||
$result = db_query($q, $dbh);
|
$result = db_query($q, $dbh);
|
||||||
if (!$result) {
|
if (!$result) {
|
||||||
print __("No results matched your search criteria.");
|
print __("No results matched your search criteria.");
|
||||||
|
|
Loading…
Add table
Reference in a new issue