Converting MySQL timestamp to RSS pubDate in PHP
A quick and simple means of using PHP to convert a MySQL timestamp field into the required format for the RSS pubDate field. date(‘D, d M Y H:i:s O’, strtotime($mysql_timestamp_val));
A quick and simple means of using PHP to convert a MySQL timestamp field into the required format for the RSS pubDate field. date(‘D, d M Y H:i:s O’, strtotime($mysql_timestamp_val));
This is one of those really annoying pieces of syntax that I can never remember and that I always have to look up so I figured that other people would surely have the same issue :) Anyway, see below for how to write CDATA comments in your JavaScript to make it XHTML compliant. //