X-Git-Url: https://git.piment-noir.org/?p=Project_webapp.git;a=blobdiff_plain;f=lib%2Futils.php;h=f8867162fb601c03aef41246a8c47015e729191a;hp=5ab99b599fa7301b864bec195c1c717917f3efa7;hb=68cee0ac3fe728566e16dc0460416c77022f4b22;hpb=22f1dc6402dbc9a9c5d2ed2f17ef54044d35ec2a diff --git a/lib/utils.php b/lib/utils.php index 5ab99b5..f886716 100644 --- a/lib/utils.php +++ b/lib/utils.php @@ -98,7 +98,7 @@ function get_client_id($email) function nb_booked($client_id, $flight_id, $class_name) { global $connection; - $sql_pquery = "select SUM(NbPlaces) from RESERVATIONS where NumCl = ? and NumVol = ? and Classe = ?"; + $sql_pquery = "select sum(NbPlaces) from RESERVATIONS where NumCl = ? and NumVol = ? and Classe = ?"; $connection->prepare_query($sql_pquery); $connection->prepared_query_bind_param("iss", array($client_id, $flight_id, $class_name)); $connection->run_prepared_query();