prepare('DELETE FROM contacts WHERE id = ?'); $stmt->execute([$id]); } header('Location: contacts.php'); exit;