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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With