Welcome Guest, Not a member yet? Register   Sign In
Active Record and CURDATE()
#3

[eluser]everdaniel[/eluser]
you might need to use the set() method to prevent CI from escaping your mysql function, so:

Code:
$this->db->set('title', $title);
$this->db->set('dateing', 'CURDATE()', FALSE);
$this->db->update('news');


Messages In This Thread
Active Record and CURDATE() - by El Forum - 01-15-2009, 08:23 AM
Active Record and CURDATE() - by El Forum - 01-15-2009, 09:27 AM
Active Record and CURDATE() - by El Forum - 01-15-2009, 09:46 AM
Active Record and CURDATE() - by El Forum - 01-15-2009, 10:23 AM
Active Record and CURDATE() - by El Forum - 01-15-2009, 10:45 AM
Active Record and CURDATE() - by El Forum - 01-15-2009, 10:53 AM
Active Record and CURDATE() - by El Forum - 01-15-2009, 11:54 AM
Active Record and CURDATE() - by El Forum - 01-15-2009, 12:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB