Welcome Guest, Not a member yet? Register   Sign In
Using Native MySQL Functions With Active Record
#2

[eluser]Armchair Samurai[/eluser]
Set the third parameter in the where function to FALSE:
Code:
$this->db->where("DATE('datetime_column')", 'CURDATE()', FALSE);
$query = $this->db->get('sometable');


Messages In This Thread
Using Native MySQL Functions With Active Record - by El Forum - 06-24-2008, 08:35 AM
Using Native MySQL Functions With Active Record - by El Forum - 06-24-2008, 08:50 AM
Using Native MySQL Functions With Active Record - by El Forum - 06-24-2008, 10:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB