title: Select from MySQL based on string length of a column - CodeIgniter
body: <p>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.</p>
  
  <p>Code:</p>
  
  <pre><code>        $this-&gt;db-&gt;order_by('time_stamp', 'desc');
          $this-&gt;db-&gt;where('strlen(user_categrory)&gt;1');//I know this code does not work but that's what I wanted to achieve
          $data['record']=$this-&gt;db-&gt;select('username, user_category, email, source, status, test_group, time_stamp, referrer_email')-&gt;get('user');
  </code></pre>
  
  <p>Any advice on how to get this done? Thanks a ton.</p>