prepare("DELETE FROM assets WHERE id = ?"); $stmt->execute([$asset_id]); header("Location: index.php?success=asset_deleted"); exit; } catch (PDOException $e) { header("Location: index.php?error=db_error"); exit; } ?>