From a rss feed i have either pubdate as well the timestamp:
pubdate:
Thu, 03 May 2012 09:00:00 +0000
timestamp:
1336035600
However when i insert it into the database it’s always: 0000-00-00 ETC.
This is the query:
$query = "INSERT INTO adafruit_articles VALUES ('', '$title', '$link', '$comments', '$timestamp', '$description', '$content')";

Is my database set up correct?
You need to convert it into a MySQL friendly format. Passing the timestamp to the
date()function makes this easy:Or use the DateTime object: