Welcome Guest, Not a member yet? Register   Sign In
Active Records and MySQL Keywords like NOW()
#2

[eluser]saidbakr[/eluser]
Hello,
I think that using SQL function such as NOW() in active record is not possible. However, you are able the method query() of the db object
Code:
$this->db->query("INSERT INTO my_table (title,the_date) VALUES (\"$title\",NOW())");


Messages In This Thread
Active Records and MySQL Keywords like NOW() - by El Forum - 01-06-2010, 04:49 PM
Active Records and MySQL Keywords like NOW() - by El Forum - 01-06-2010, 05:55 PM
Active Records and MySQL Keywords like NOW() - by El Forum - 01-06-2010, 07:44 PM
Active Records and MySQL Keywords like NOW() - by El Forum - 01-06-2010, 09:02 PM
Active Records and MySQL Keywords like NOW() - by El Forum - 01-07-2010, 07:53 AM
Active Records and MySQL Keywords like NOW() - by El Forum - 01-07-2010, 01:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB