title: How to find active and expired users, compare dates in Codeigniter?
body: <pre><code>Tablename :- userinfo
  Column :- expiration [ type:- text ]
  Date format :- date('d M Y')
  Database :- MySQL
  Tech :- Codeigniter 3
  </code></pre>
  
  <p>Table contains record of users and I want to filter result through expiration date.</p>
  
  <pre><code>Active users :- $exp_date &gt; $cur_date;
  Expired users :- $exp_date &lt; $cur_date;
  </code></pre>