3
I need to somehow insert into the server the time EXACT who sends a message to the database.
I’m using the function NOW()
to record the moment:
"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 still doesn’t record the time correctly..
Testing the 08:17 // 14-07-2015 - PC -->> 11:17:25
How are you generating the date in the $message variable? Using some PHP function?
– gmsantos