Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function genres(){
- $genres = $this->pdo->connect()->query("SELECT * FROM movie WHERE JSON_SEARCH(genre, 'comedy', '$.genre_name') IS NOT NULL");
- return $genres->fetchAll(PDO::FETCH_OBJ);
- }
Add Comment
Please, Sign In to add comment