Could someone tell me what I am doing wrong.
If I use the code below, I am able to update the DB.
$sUpdateSql = "UPDATE googleAnalytics SET $period = '$value' WHERE statisticName = '$item' ";
$preparedStatement = $db->query($sUpdateSql);
However, with the statement below the DB does not update.
$sUpdateSql = "UPDATE googleAnalytics SET $period = '?' WHERE statisticName = '?' ";
$preparedStatement = $db->prepare($sUpdateSql);
/* bind parameters for markers */
$preparedStatement->bindValue(1, $value);
$preparedStatement->bindValue(2, $item);
$preparedStatement->execute();