From 52f5d9417ffda9fde2c7d73dd78bed578a68c111 Mon Sep 17 00:00:00 2001 From: Markines16 <80280295+Markines16@users.noreply.github.com> Date: Mon, 3 May 2021 12:37:56 +0200 Subject: [PATCH] Delete hall_dao.php --- panel_manager/includes/hall_dao.php | 73 ----------------------------- 1 file changed, 73 deletions(-) delete mode 100644 panel_manager/includes/hall_dao.php diff --git a/panel_manager/includes/hall_dao.php b/panel_manager/includes/hall_dao.php deleted file mode 100644 index 4c85a7c..0000000 --- a/panel_manager/includes/hall_dao.php +++ /dev/null @@ -1,73 +0,0 @@ -mysqli, $sql) or die ('Error into query database'); - - $hall = null; - - while($fila=mysqli_fetch_array($resul)){ - $hall[] = $this->loadHall($fila["number"], $fila["idcinema"], $fila["numrows"], $fila["numcolumns"]); - } - - mysqli_free_result($resul); - - return $hall; - } - - //Create a new Hall Data Transfer Object. - public function loadHall($number, $idcinema, $numrows, $numcolumns){ - return new HallDTO($number, $idcinema, $numrows, $numcolumns); - } - - //Edit Hall. - public function editHall($id, $idcinema, $numCol, $numRows){ - - $sql = sprintf( "UPDATE `hall` - SET `numrows` = '%i' , `numcolumns` = '%i' - WHERE `hall`.`number` = '%d' AND `hall`.`idcinema` = '%d';", - $numRows,$numCol,$id, $idcinema ); - - $resul = mysqli_query($this->mysqli, $sql) or die ('Error into query database'); - - return $resul; - } - - //Delete Hall. - public function deleteHall($id, $idcinema){ - - $sql = sprintf( "DELETE FROM `hall` WHERE `hall`.`number` = '%d' AND `hall`.`idcinema` = '%d';",$id,$idcinema); - - $resul = mysqli_query($this->mysqli, $sql) or die ('Error into query database'); - - return $resul; - } - - } - -?> \ No newline at end of file