Add files via upload

This commit is contained in:
Fernando Méndez
2021-06-06 22:16:15 +02:00
committed by GitHub
parent b90cbcd074
commit df9f8176d4
3 changed files with 39 additions and 3 deletions

View File

@ -39,6 +39,7 @@
return $seat_map;
}
//Delete a Seat whit the primary key
public function deletemapSeats($hall, $cinema){
$sql = sprintf( "DELETE FROM `seat` WHERE
@ -49,6 +50,19 @@
return $resul;
}
//Change state of the seat.
public function changeSeatState($hall, $cinema, $row, $col, $state){
$id = $this->mysqli->real_escape_string($idHall);
$state = $this->mysqli->real_escape_string($state);
$sql = sprintf( "UPDATE seat SET active = '%d' WHERE idhall = '%d' AND idcinema = '%d' AND numrow = '%d' AND numcolum = '%d'",
$state, $hall, $cinema, $row, $col );
$resul = mysqli_query($this->mysqli, $sql) or die ('Error into query database');
return $resul;
}
//Create a new Seat Data Transfer Object.
public function loadSeat($idhall, $idcinema, $numRow, $numCol, $state){