Changeset 477
- Timestamp:
- Mar 8, 2009, 5:16:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/beta/rss.php
r476 r477 11 11 <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 12 12 <channel> 13 <title>WoW Zdechov RSS</title> 14 <link><b>Webová stranka serveru:</b> http://wow.zdechov.net/</link> 15 13 <title>HoF Ticket RSS</title> 14 <link>http://wow.zdechov.net/</link> 15 <description>HoF Ticket RSS</description> 16 <language>cs</language> 16 17 <lastBuildDate><?php echo date("j/m/Y H:i:s").""; ?></lastBuildDate> 17 18 <atom:link href="http://www.samuraj-cz.com/rss/" rel="self" type="application/rss+xml" /> … … 24 25 $result = mysql_query("SELECT * FROM character_ticket ORDER BY ticket_lastchange DESC, ticket_id DESC LIMIT 20 "); 25 26 while($rec = mysql_fetch_array($result)) { 27 $guid = $rec["guid"]; 26 28 $time = $rec["ticket_lastchange"]; 27 $human_date = date("d.m.Y H:i", strtotime($time)); ?> 29 $human_date = date("d.m.Y H:i", strtotime($time)); 30 $result2 = mysql_query("SELECT name FROM characters where guid='$guid' "); 31 while($rec2 = mysql_fetch_array($result2)) { 32 $name = $rec2["name"]; 33 } 34 ?> 28 35 <item> 29 <pubDate><?php echo"<br><b> $human_date </b></br> ";?></pubDate> 30 <description><?php echo "".htmlspecialchars(strip_tags($rec[ticket_text]))." "; ?></description> 31 36 37 <title><?php echo "<br><b>$name</b></br>"; ?> sss</title> 38 <pubDate><?php echo"$human_date";?></pubDate> 39 <link>http://wow.zdechov.net/beta</link> 40 <description><?php echo "<br>".htmlspecialchars(strip_tags($rec[ticket_text]))." </br>"; ?></description> 41 42 32 43 </item> 33 44 <?php 34 } 45 } 46 35 47 ?> 36 48 </channel>
Note:
See TracChangeset
for help on using the changeset viewer.