Is it possible to sort the values retrieved from MySQL, in say descending id?
Thanks.
Is it possible to sort the values retrieved from MySQL, in say descending id?
Thanks.
Here you go...
$this->db->select("*");
$this->db->from("table");
$this->db->order_by("id", "desc");
$this->db->get();
Read more over in codeigniter documentation for active record class.