Merge pull request #5 from generalpf/generalpf-fix-bound-param-error
fix bound param error
This commit is contained in:
commit
99581c314a
1 changed files with 2 additions and 2 deletions
|
@ -143,7 +143,7 @@ $stmt = $smarty->dbh()->prepare("SELECT i.itemid, description, price, source, c.
|
||||||
"LEFT OUTER JOIN {$opt["table_prefix"]}allocs a ON a.itemid = i.itemid AND i.quantity = 1 " . // only join allocs for single-quantity items.
|
"LEFT OUTER JOIN {$opt["table_prefix"]}allocs a ON a.itemid = i.itemid AND i.quantity = 1 " . // only join allocs for single-quantity items.
|
||||||
"LEFT OUTER JOIN {$opt["table_prefix"]}users ub ON ub.userid = a.userid AND a.bought = 1 " .
|
"LEFT OUTER JOIN {$opt["table_prefix"]}users ub ON ub.userid = a.userid AND a.bought = 1 " .
|
||||||
"LEFT OUTER JOIN {$opt["table_prefix"]}users ur ON ur.userid = a.userid AND a.bought = 0 " .
|
"LEFT OUTER JOIN {$opt["table_prefix"]}users ur ON ur.userid = a.userid AND a.bought = 0 " .
|
||||||
"WHERE i.userid = $shopfor " .
|
"WHERE i.userid = ? " .
|
||||||
"ORDER BY " . $sortby);
|
"ORDER BY " . $sortby);
|
||||||
$stmt->bindParam(1, $shopfor, PDO::PARAM_INT);
|
$stmt->bindParam(1, $shopfor, PDO::PARAM_INT);
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue