blob: 4b710aa3aac14bc806f6a871eb81483a8516f8f8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<?php
include('includes/db.php');
include('includes/update.php');
echo('<?xml version="1.0"?>');
?>
<rss version="2.0">
<channel>
<title>Pillowcase</title>
<link>http://pillowcase.fourisland.com/</link>
<description>pillowcase - the result of an obsession with cute, plush objects that talk nonsense</description>
<language>en-us</language>
<?php
$getitems = "SELECT * FROM comics WHERE status = \"publish\" ORDER BY comic_id DESC LIMIT 0,10";
$getitems2 = mysql_query($getitems);
while ($getitems3 = mysql_fetch_array($getitems2))
{
?>
<item>
<title><?php echo($getitems3['title']); ?></title>
<link>http://pillowcase.fourisland.com/comic<?php echo($getitems3['comic_id']); ?>.htm</link>
<description><![CDATA[<IMG SRC="http://pillowcase.fourisland.com/images/comics/<?php echo($getitems3['filename']); ?> ALT="<?php echo($getitems3['title']); ?>"><p><?php echo($getitems3['text']); ?></p>]]></description>
<pubDate><?php echo(date('D, d M Y H:i:s O',strtotime($getitems3['pubDate']))); ?></pubDate>
</item>
<?php
}
?>
</channel>
</rss>
|