ae
This commit is contained in:
+1
-1
@@ -84,5 +84,5 @@ class Movie {
|
||||
// Si tu n'as pas de colonne 'watched', ajoute-la en BDD : ALTER TABLE movies ADD COLUMN watched BOOLEAN DEFAULT 0;
|
||||
$stmt = $this->db->prepare("UPDATE movies SET watched = 1 WHERE id = ? AND user_id = ?");
|
||||
return $stmt->execute([$movieId, $userId]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user