prepare("SELECT * FROM posts ORDER BY id DESC"); $postQuery->execute(); header("Content-type: text/xml"); echo " Win's Posts RSS Feed https://posts.winscloud.net/ Win's Posts - The homepage of Win's Life en-us"; while($result = $postQuery->fetch(PDO::FETCH_ASSOC)) { $postUrl = $result["url"]; $postContent = $result["content"]; $postAuthor = $result["author"]; // $rawDate = $result["published"]; $postDate = date('M j Y g:i A', strtotime($result["published"])); echo " Post by $postAuthor https://posts.winscloud.net/status?url=$postUrl https://posts.winscloud.net/status?url=$postUrl $postDate $postContent "; } echo ""; ?>