title: DateADD with codeigniter, to get the entry of the last 30 days
body: <p>here's my method called in my model:</p>
  
  <pre><code>return $this-&gt;db-&gt;select('*')
  -&gt;from($this-&gt;table)
  -&gt;where('date &gt;',DateADD(day, -30, Current_TimeStamp))
  -&gt;get()
  -&gt;result();
  </code></pre>
  
  <p>so then I have this error:</p>
  
  <pre><code>fatal error: Call to undefined function DateADD() 
  </code></pre>
  
  <p>thank you</p>