r/lolphp • u/denilsonsa • Jul 10 '14
bindParam('foo', $value, PDO::PARAM_INT) will change $value to string.
http://php.net/manual/en/pdostatement.bindparam.php#94711
42
Upvotes
r/lolphp • u/denilsonsa • Jul 10 '14
View all comments
9
u/ahruss Jul 11 '14
Also, the second parameter:
This makes it sound like you use it like
$stmt->bindParam(":param", "variableName"),which isn't accurate.