Add files via upload

This commit is contained in:
Fernando Méndez
2021-05-28 14:21:10 +02:00
committed by GitHub
parent 12c61a4683
commit b80a9ae1db
18 changed files with 440 additions and 40 deletions

View File

@ -22,6 +22,25 @@
return $sql;
}
//Returns the hall's data by ID.
public function HallData($id){
$id = $this->mysqli->real_escape_string($id);
$sql = sprintf( "SELECT * FROM hall WHERE number = '%d'", $id );
$resul = mysqli_query($this->mysqli, $sql) or die ('Error into query database');
$resul->data_seek(0);
$hall = null;
while ($fila = $resul->fetch_assoc()) {
$hall = $this->loadHall($fila["number"], $fila["idcinema"], $fila["numrows"], $fila["numcolumns"], $fila["total_seats"], null);
}
//mysqli_free_result($selectUser);
$resul->free();
return $hall;
}
//Returns a query to get the halls data.
public function getAllHalls($cinema){