I want to insert current time in database using mySQL function NOW() in Codeigniter\'s active record. The following query won\'t work:
$data = array(
$this->db->query("update table_name set ts = now() where 1=1") also works for current time stamp!
$this->db->query("update table_name set ts = now() where 1=1")