I need some way to insert the EXATA time from the server who sends a message to the database.
I'musingtheNOW()
functiontoregisterthemoment:
"INSERT INTO 'chat' (id_de, id_para, data, mensagem, hora) VALUES('$id_de','$id_para',NOW(),'$mensagem', DATE_FORMAT(now(), '%H:%i:%s'))"
However, it does not record the time correctly.
Test the 08:17 // 14-07-2015 - PC - > > 11:17:25