I think the title is quite obvious,
is it possible to set bigger/less than clauses in the where statement?
$crud->where('status','active'); // status > 2 or < 5 etc. possible?
Thanks,
R2D2
⚠ 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. ⚠
Posted 27 April 2012 - 16:15 PM
$crud->where('status','active'); // status > 2 or < 5 etc. possible?
Posted 27 April 2012 - 16:31 PM
$crud->where('status >','2')->where('status <','5');
$where = "status > '2' AND status < '5'";
$crud->where($where);
Posted 27 April 2012 - 16:40 PM
Posted 27 April 2012 - 18:50 PM
$crud->where(array('status >' => '2', 'status <' => '5'));