![]() |
Use of sysdate() for MySQL not working - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Use of sysdate() for MySQL not working (/showthread.php?tid=9660) |
Use of sysdate() for MySQL not working - El Forum - 07-03-2008 [eluser]extra_rice[/eluser] the trans_datetime doesn't return the current date... Code: $data = array( and this one without the single quote gives a PHP error... Code: $data = array( any solutions guys? Use of sysdate() for MySQL not working - El Forum - 07-03-2008 [eluser]johnwbaxter[/eluser] What does 'trans_datetime' return in your first example if it's not returning the current date? Use of sysdate() for MySQL not working - El Forum - 07-03-2008 [eluser]Seppo[/eluser] Code: $this ->obj->db->set('trans_datetime', 'sysdate()', FALSE); Use of sysdate() for MySQL not working - El Forum - 07-04-2008 [eluser]extra_rice[/eluser] @audiopleb: thanks for the reply dude... just solved it using Seppo's solution @Seppo: thanks dude! never thought i'd have to do it like that... thanks again! |