I have this query and I want to put it on my code igniter php.
SELECT MAX(IDnumber) FROM student WHERE IDnumber LIKE '2013256%'
I trued this one but it returns error:
$this->db->select_max('IDnumber');
$this->db->get('student');
$IDnumber = $this->db->like('IDnumber', '2013256', 'after');
return $IDnumber;
does anyone have an idea about my case? thanks in advance...
$this->db-select_max
? should't it be$this->db->select_max
?