I have a field in an MySQL database named last_login which is stored as an int(10). I would like to echo the last_login data as a readable date/time. Here is the code I currently have:
$timestamp = 1291575177;
echo date("h:i:s",$timestamp);
What is the proper way to add the last_login data from the MySQL database into the above code where the 1291575177 is?
Use this:
The output of that would be
2010-12-05:18:52:57.