01.02.2012, 23:08
If you're fetching the timestamp from MySQL along with other data, then you might consider doing something like:
You can also specify a custom format. Read up on it in the documentation.
PHP код:
SELECT *, FROM_UNIXTIME(`timestamp`) AS `frm_timestamp` FROM `table` WHERE `something` = 1