I am new to Php. I created a registration and registration system that works fine, but I want to display the last login time when a user logs in. I have a table (TIMESTAMP) that stores data as 2013-03-08 00:00:00. It displays the date, but not the time. I also want to display these results when a user logs in.
I use the code below when the data validation is successful and the user session variable is set.
$currentDate = date('Ymd g:i:s'); mysql_query('UPDATE `users` SET `last_sctivity` = "' . $currentDate . '"');
source share