diff --git a/panel_admin/includes/film_dao.php b/panel_admin/includes/film_dao.php index a342a1e..e9be226 100644 --- a/panel_admin/includes/film_dao.php +++ b/panel_admin/includes/film_dao.php @@ -65,14 +65,13 @@ $tittle,$duration,$language, $description,$id); $resul = mysqli_query($this->mysqli, $sql) or die ('Error into query database'); - return $resul; } //Returns a query to get all films tittles. public function tittleFilmData(){ - $sql = sprintf( "SELECT tittle FROM film "); + $sql = sprintf( "SELECT DISTINCT tittle FROM film "); $resul = mysqli_query($this->mysqli, $sql) or die ('Error into query database'); return $resul;