我收到一个数据库错误,即Error Number: 1054
' IS NULL LIMIT 15'
'where 子句'中的
未知列SELECT * FROM (categories) WHERE IS NULL LIMIT 15
function categories()
{
$this->suri=3;
$this->surl=site_url('variables/categories/');
$this->load->library('pagination');
$cond = array(
'parent_id' => '0'
);
$config['base_url'] = $this->surl;
$config['total_rows'] = $this->commonmodel->getcountcond('categories',$cond);
$config['per_page'] = '15';
$config['first_link'] = 'First';
$config['last_link'] = 'Last';
$config['cur_tag_open'] = '<span>';
$config['cur_tag_close'] = '</span>';
$config['uri_segment'] = $this->suri;
$this->pagination->initialize($config);
$parent_cond = array(
'parent_id' => '0'
);