I'm stuck with the format for the date:
(the database column date has the format 2008 12 26)
I've tried it with both the mysql SELECT and in the php, but can't get either to correctly validate (W3C feed).
SELECT `ref`, DATE_FORMAT(date,'%a, %d %b %Y %T') as dated
$updated = $dated("D, n M Y h:i:s");