diff --git a/panel_admin/includes/film_dao.php b/panel_admin/includes/film_dao.php index 788822f..1c69c87 100644 --- a/panel_admin/includes/film_dao.php +++ b/panel_admin/includes/film_dao.php @@ -28,12 +28,20 @@ return $resul; } + + //Returns a query to get All the films. + public function allFilmData(){ + $sql = sprintf( "SELECT * FROM film "); + $resul = mysqli_query($this->mysqli, $sql) or die ('Error into query database'); + return $resul; + } + //Create a new film Data Transfer Object. public function loadFilm($id, $tittle, $duration, $language){ return new FilmDTO( $id, $tittle, $duration, $language); } - + } ?>