prepare("DELETE FROM payments WHERE id = ?"); if ($stmt->execute([$id])) { header("Location: index.php?page=payments&success=3"); } else { header("Location: index.php?page=payments&error=2"); } exit; ?>