Answers for "codeigniter 4 order_by"

PHP
1

codeigniter order by

$this->db->from($this->table_name);
$this->db->order_by("name", "asc");
$query = $this->db->get(); 
return $query->result();
Posted by: Guest on June-04-2020

Browse Popular Code Answers by Language