query($sql); $likeCount = $resultat ->fetchColumn(); $likeCount += 1; echo ($likeCount); $sql = "UPDATE idee SET likes=? WHERE id=?"; $stmt = $db->prepare($sql); $stmt->execute(array($likeCount, $id)); ?>