I had a loop like that :
foreach($Fields as $Name => $Value){
$Query->bindParam(\':\'.$Name, $Value, PDO::PARAM_STR);
}
Nothing c
If you don't need the ability to keep the variable in sync with the bound parameter before the query is executed (which is the case 99.9% of the time, in my experience), it's probably better to simply use PDOStatement::bindValue() instead of PDOStatement::bindParam():
foreach ($Fields as $Name => $Value) {
$Query->bindValue(':' . $Name, $Value, PDO::PARAM_STR);
}