I generate a date in PHP and save it in the database:
$today = date('Y-m-d H:i:s');
$timestamp = strtotime($today);
In the bank it is saved in this format: 1474496101
When I do a SELECT in this field using the query below for example, NOT TURNED OUT.
SELECT * FROM teste.data WHERE data = FROM_UNIXTIME(1474496101)
Can anyone tell me why?