Php 按名称列出的代码点火器命令不起作用

Php 按名称列出的代码点火器命令不起作用,php,codeigniter,Php,Codeigniter,所以我使用AJAX调用从数据库中提取了10条记录 下面是我的代码: public function get_next_10($offset = 0) { $this->db->limit(15, $offset); $query = $this->db->get("postovi"); return $query->num_rows() > 0 ? $query->result_array() : NULL; } 我试着说: $

所以我使用AJAX调用从数据库中提取了10条记录

下面是我的代码:

public function get_next_10($offset = 0)
{
    $this->db->limit(15, $offset);
    $query = $this->db->get("postovi");
    return $query->num_rows() > 0 ? $query->result_array() : NULL;
}
我试着说:

$this->db->order_by("name", "asc");
但它抛出了一个错误。

工作正常

public function get_next_10($offset = 0)
{
$this->db->limit(15, $offset);
$this->db->order_by('name', 'asc');
$query = $this->db->get("postovi");
return $query->num_rows() > 0 ? $query->result_array() : NULL;
}
工作正常

public function get_next_10($offset = 0)
{
$this->db->limit(15, $offset);
$this->db->order_by('name', 'asc');
$query = $this->db->get("postovi");
return $query->num_rows() > 0 ? $query->result_array() : NULL;
}

那是什么语言?o、 语言是什么?错误信息是什么?请在中检查此答案:那是什么语言?o、 语言是什么?错误消息是什么?请在中检查此答案,以便: