Delete appointment from calendar
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user