Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

applying multiple order by in codeigniter

$this->db->from($this->table_name);
$this->db->order_by("column1 asc,column2 desc");
$query = $this->db->get(); 
return $query->result();
 
PREVIOUS NEXT
Tagged: #applying #multiple #order #codeigniter
ADD COMMENT
Topic
Name
3+3 =