timestamp datatype form MySQL is not a UNIX timestamp and you cannot use it in it's default format with the PHP date function. You can however use the MySQL UNIX_TIMESTAMP() function to convert it as you query the database:
$query = "SELECT *, UNIX_TIMESTAMP(timestamp_field) AS curdate FROM table";