Update film_dao.php
This commit is contained in:
parent
39ac587a60
commit
9f93a4de17
@ -37,10 +37,10 @@
|
|||||||
$resul = mysqli_query($this->mysqli, $sql) or die ('Error into query database');
|
$resul = mysqli_query($this->mysqli, $sql) or die ('Error into query database');
|
||||||
|
|
||||||
while($fila=mysqli_fetch_array($resul)){
|
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.
|
//Returns a query to get all films tittles.
|
||||||
|
Loading…
Reference in New Issue
Block a user