I'm using CodeIgniter to select data from a MySQL table based on if data from 1 column's string length is greater than 1.
Code:
$this->db->order_by('time_stamp', 'desc');
$this->db->where('strlen(user_categrory)>1');//I know this code does not work but that's what I wanted to achieve
$data['record']=$this->db->select('username, user_category, email, source, status, test_group, time_stamp, referrer_email')->get('user');
Any advice on how to get this done? Thanks a ton.