se faccio come dici tu,
PARLO DI TIPO TIMESTAMP NEL DATABASE,
QUINDI $record[data_e_ora] è di tipo TIMESTAMP
select.....
$data_e_ora = $record['data_e_ora']
date ("d-m-Y", $data_e_ora)
mi torna 1-1-1970
mahhhhhhhhhhhh
PS: con now() l'inserimento in un campo DATETIME FUNZIONA
----------------------
preferirei utilizzare TIMESTAMP nel database e utilizzzare una funzione che da un tipo TIMESTAP mi faccia tirare fuori la data
![]()
![]()
![]()
![]()