• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.