Delete appointment from calendar

This commit is contained in:
2020-07-13 19:12:22 +02:00
parent a772b300df
commit 77a4a5987e
4 changed files with 9 additions and 5 deletions

View File

@@ -420,7 +420,7 @@ function editAppointment($pdo, $data){
function deleteAppointment($pdo, $id){
$statement = "DELETE FROM cita where id=?";
$statement = "DELETE FROM cita WHERE id=?";
$pdo->prepare($statement)->execute([$id]);
return "Cita borrada con éxito";
}