prepare("DELETE FROM processes WHERE id = :id"); $stmt->bindParam(':id', $id, PDO::PARAM_INT); $stmt->execute(); } catch (PDOException $e) { error_log("DB Error: " . $e->getMessage()); // Optionally, redirect with an error message } } header('Location: index.php'); exit(); ?>