SELECT * FROM events WHERE MONTH(date) = '$month'
$events = Model_Event::find('all', array( 'where' => array( array('MONTH(start)', $month) ) ));Obviously, that doesn't work. How might I get it to work?
'where' => array( array(Db::expr('MONTH(start)'), $month), )
array(DB::expr('MONTH(start)'), '>', date("n")) array(DB::expr('UNIX_TIMESTAMP(start)'), '>', time()) array(DB::expr('UNIX_TIMESTAMP(start)'), time())
Model_Something::find('all', array('where' => array(array(DB::expr('MONTH(start)'), '>', date("n")))));
Model_Something::find('all', array('where' => array(array((string) \DB::expr('MONTH(column)'), '>', date("n")))))
It looks like you're new here. If you want to get involved, click one of these buttons!