0

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.

ss_mj
  • 167
  • 1
  • 15

0 Answers0