Can i use bindValue() like given in the code below, is it valid.
foreach ($myArray as $paramName => $Data)
{
$paramStr = ":".$paramName;
$preparedQuery->bindValue($paramStr, $Data);
}
My concern is about binding with variable $Data, which will have different values through the loop.