Update film_dao.php

This commit is contained in:
Fernando Méndez 2021-04-13 19:22:20 +02:00 committed by GitHub
parent 39ac587a60
commit 9f93a4de17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,10 +37,10 @@
$resul = mysqli_query($this->mysqli, $sql) or die ('Error into query database');
while($fila=mysqli_fetch_array($resul)){
$films[] = $this->loadFilm($fila["id"], $fila["tittle"], $fila["duration"], $fila["language"], $fila["description"]);
$films[] = $this->loadFilm($fila["id"], $fila["tittle"],$fila["duration"],$fila["language"],$fila["description"]);
}
return $resul;
return $films;
}
//Returns a query to get all films tittles.