Add files via upload

This commit is contained in:
Markines16 2021-05-20 11:42:06 +02:00 committed by GitHub
parent e799376cbd
commit 7ff0fc7d3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,10 +62,16 @@
$origin = array("cinema" => $cinema,"hall" => $or_hall,"start" => $or_start,"date" => $or_date); $origin = array("cinema" => $cinema,"hall" => $or_hall,"start" => $or_start,"date" => $or_date);
$bd->editSession($film, $hall, $cinema, $date, $start, $price, $format,$origin); $bd->editSession($film, $hall, $cinema, $date, $start, $price, $format,$origin);
return "Se ha editado la session con exito"; return "Se ha editado la session con exito";
}else }else if($or_hall == $hall && $or_start == $start && $or_date == $date){
$origin = array("cinema" => $cinema,"hall" => $or_hall,"start" => $or_start,"date" => $or_date);
$bd->editSession($film, $hall, $cinema, $date, $start, $price, $format, $origin);
return "Se ha editado la session con exito";
}else{
return "Ya existe una sesion con los parametros nuevos"; return "Ya existe una sesion con los parametros nuevos";
}
} else } else
return "Esta session no existe"; return "La session a editar no existe";
} else return "Error al conectarse a la base de datos"; } else return "Error al conectarse a la base de datos";
} }