missed a couple of calls here, should have a type for each non-float bound parameter

This commit is contained in:
Ryan Walberg 2012-11-22 04:42:23 +00:00
parent 246232f0a3
commit 137d715568
2 changed files with 3 additions and 3 deletions

View file

@ -187,7 +187,7 @@ if (!empty($_REQUEST["action"])) {
$stmt->bindParam(8, $comment, PDO::PARAM_STR);
$stmt->bindParam(9, $quantity, PDO::PARAM_INT);
if ($image_base_filename != "") {
$stmt->bindParam(10, $image_base_filename);
$stmt->bindParam(10, $image_base_filename, PDO::PARAM_STR);
}
$stmt->execute();
@ -221,7 +221,7 @@ if (!empty($_REQUEST["action"])) {
$stmt->bindParam(8, $comment, PDO::PARAM_STR);
$stmt->bindParam(9, $quantity, PDO::PARAM_INT);
if ($image_base_filename != "") {
$stmt->bindParam(10, $image_base_filename);
$stmt->bindParam(10, $image_base_filename, PDO::PARAM_STR);
$stmt->bindParam(11, (int) $_REQUEST["itemid"], PDO::PARAM_INT);
}
else {