Bugfix: Correct syntax for prepared statement in "copy" action
This commit is contained in:
parent
0503a9b5ce
commit
ab4815fd88
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ if (!empty($_GET["action"])) {
|
|||
$price = (float) $row["price"];
|
||||
$cat = (int) $row["category"];
|
||||
|
||||
$stmt = $smarty->dbh()->prepare("INSERT INTO {$opt["table_prefix"]}items(userid,description,price,source,url,comment,category,ranking,quantity) VALUES(?, ?, ?, ?, ?, ?, ?, 1, 1");
|
||||
$stmt = $smarty->dbh()->prepare("INSERT INTO {$opt["table_prefix"]}items(userid,description,price,source,url,comment,category,ranking,quantity) VALUES(?, ?, ?, ?, ?, ?, ?, 1, 1)");
|
||||
$stmt->bindParam(1, $userid, PDO::PARAM_INT);
|
||||
$stmt->bindParam(2, $desc, PDO::PARAM_STR);
|
||||
$stmt->bindParam(3, $price);
|
||||
|
|
Loading…
Add table
Reference in a new issue