function showNum($content, $limit, $offset, $table = 'nano_message')
{
if (!$limit) {
$query = $this->db->get($table); //获取一个表的全部数据
} else {
$this->db->like('title', $content); //匹配语句
$this->db->or_like('content', $content); //or连接
$this->db->order_by("publish_time", "desc"); //排序
$this->db->group_by("tier"); //分组
$this->db->limit($limit, $offset); //结果集每页纪录数
$query = $this->db->get($table); //获取一个表的全部数据
}
return $query;
}