如何在 Codeigniter 中按顺序显示代码
<ul id="sortable">
<?php
$query = $this->db->get('drag');
foreach ($query->result() as $row)
{
echo '<li class="ui-state-default" title="'.$row->main_category_id.'" data-id="'.$row->id.'">'.$row->feeld.' <button type="button" class="btn btn-danger delbtn" id="dlbtn" data-ids="'.$row->id.'"><i class="fa fa-trash" aria-hidden="true"></i></button></li>';
}
?>