Welcome Guest, Not a member yet? Register   Sign In
Inserting NOW() into Database with Active Record
#5

[eluser]Armchair Samurai[/eluser]
Use db->set() with the third parameter set to false, as mentioned in the User Guide
Code:
$this->db->set('date', 'NOW()', FALSE);


Messages In This Thread
Inserting NOW() into Database with Active Record - by El Forum - 08-28-2009, 02:37 PM
Inserting NOW() into Database with Active Record - by El Forum - 08-28-2009, 05:57 PM
Inserting NOW() into Database with Active Record - by El Forum - 08-28-2009, 06:23 PM
Inserting NOW() into Database with Active Record - by El Forum - 08-28-2009, 07:03 PM
Inserting NOW() into Database with Active Record - by El Forum - 08-28-2009, 07:39 PM
Inserting NOW() into Database with Active Record - by El Forum - 08-28-2009, 10:16 PM
Inserting NOW() into Database with Active Record - by El Forum - 08-28-2009, 11:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB