prepare('DELETE FROM customers WHERE id = ?'); $stmt->execute([$customer_id]); } catch (PDOException $e) { // Optional: Log the error or show a generic error message // For simplicity, we redirect without an error message } } header('Location: customers.php'); exit; ?>