Welcome Guest, Not a member yet? Register   Sign In
SQL CURDATE() in activerecords where clause
#1

[eluser]florin[/eluser]
how do you put SQL functions like CURDATE() in active records Where clause to compare
I have a date field in mysql named "data" and i need to select the records that have data> curent data. It seems that $this->db->where('data >',CURDATE()) is not working . Tks mates !


Messages In This Thread
SQL CURDATE() in activerecords where clause - by El Forum - 05-22-2012, 05:49 AM
SQL CURDATE() in activerecords where clause - by El Forum - 05-22-2012, 06:14 AM
SQL CURDATE() in activerecords where clause - by El Forum - 05-22-2012, 08:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB