To convert a MySQL timestamp to a Unix-style timestamp, use MySQL's
UNIX_TIMESTAMP function.
For Example:
$result=mysql_query
("SELECT UNIX_TIMESTAMP(timestamp_column) as epoch_time FROM
table");
$unix_timestamp = mysql_result ($result, 0, 0);
strtotime
