📜  调用未定义的方法 CI_DB_mysqli_result::order_by() - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:38.482000             🧑  作者: Mango

代码示例1
In CodeIgniter's Active Record, every method returns the object itself (which allows method chaining) except for get and get_where which return the result set.

Thus, what you need to do is:

$query = $this->db->order_by('birth_date', 'ASC')->get_where($this->tbl_name, $where);