How to ordering table list on database using Codeigniter
Step 1 : First create order table in database.step 2 : In model folder just copy and paste the below code.
public function view_order()
{
$this->db->select('*');
$this->db->from('list');
$this->db->where('removed','0');
return $this->db->count_all_results();
}
Step 3 : you just copy and paste the code on controller folder at any page.