asd
This commit is contained in:
@@ -85,7 +85,7 @@ final class Search
|
|||||||
|
|
||||||
$stmt = $this->pdo->prepare($sql);
|
$stmt = $this->pdo->prepare($sql);
|
||||||
foreach ($bind as $name => $value) {
|
foreach ($bind as $name => $value) {
|
||||||
$paramName = $name[0] === ':' ? $name : ':' . $name;
|
echo $paramName = $name[0] === ':' ? $name : ':' . $name;
|
||||||
$type = is_int($value) ? \PDO::PARAM_INT : \PDO::PARAM_STR;
|
$type = is_int($value) ? \PDO::PARAM_INT : \PDO::PARAM_STR;
|
||||||
$stmt->bindValue($paramName, $value, $type);
|
$stmt->bindValue($paramName, $value, $type);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user