[eluser]Thiago Leao[/eluser]
[quote author="InsiteFX" date="1329310285"]You can try this, but then you will need to use set on all the fields.
Code:
$this->db->set('date_finish = DATE_ADD(CURDATE(), INTERVAL 30 DAY)');
// or
$array = array('id_products' => $id_products, 'date_start' => CURDATE(), 'date_finish' => 'DATE_ADD(CURDATE() + INTERVAL 30 DAYS)');
[/quote]
did not work!
DB
id_buy id_products id_user date_start date_finish
12 178 0 0000-00-00 0000-00-00