Hello friends beasts in PHP, can anyone help me? I can not find the error in the following public function:
public function addLike($user_id, $tweet_id, $get_id){
$stmt = $this->pdo->prepare("UPDATE 'tweets' SET 'likesCount' = 'likesCount' +1 WHERE 'tweetID' = :tweet_id");
$stmt->bindParam(":tweet_id", $tweet_id, PDO::PARAM_INT);
$stmt->execute();
$this-> create('likes', array('likeBy' => $user_id, 'likeOn' => $tweet_id));
}
If someone knows the error and can help, I thank you. Hugs to all.