⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Show the last 24h records



josepichu
  • profile picture
  • Member

Posted 27 August 2012 - 11:27 AM

Hi!,

How can I Show the last 24h records?

I know with standard SQL:


SELECT *
FROM mytable
WHERE record_date >= SYSDATE() - INTERVAL 1 DAY


I have tried using the where() method, as it says in the userguide, but it doesn't show any records:


$array = array("date>=" => "SYSDATE() - INTERVAL 1 DAY");
$this->grocery_crud->where($array);


Thanks!