Changeset 585 for trunk/rss.php
- Timestamp:
- May 15, 2009, 10:33:38 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/rss.php
r579 r585 1 1 <?php 2 2 3 header('Content-Type: text/xml');3 Header('Content-Type: text/xml'); 4 4 5 5 include('inc/db.php'); … … 15 15 $Config['Web']['Title'] .= ' - články'; 16 16 $DbResult = $db->query('SELECT UNIX_TIMESTAMP(date), articles.* FROM articles ORDER BY date DESC LIMIT '.$NewsCount); 17 while($Row = $DbResult->fetch_a rray())17 while($Row = $DbResult->fetch_assoc()) 18 18 { 19 19 $Items[] = array( 20 20 'Title' => $Row['title'], 21 21 'Link' => 'http://'.$_SERVER['SERVER_NAME'].$Config['Web']['BaseURL'], 22 'Description' => $Row['text']. " (".$Row['autor'].")",22 'Description' => $Row['text'].' ('.$Row['autor'].')', 23 23 'Time' => $Row['UNIX_TIMESTAMP(date)'], 24 24 ); … … 30 30 $db->select_db($Config['Mangos']['DatabaseCharacters']); 31 31 $DbResult = $db->query('SELECT `character_ticket`.`ticket_text` AS `text`, `characters`.`name` AS `name` FROM `character_ticket` JOIN `characters` ON `characters`.`guid` = `character_ticket`.`guid`'); 32 while($Row = $DbResult->fetch_a rray())32 while($Row = $DbResult->fetch_assoc()) 33 33 { 34 34 $Items[] = array( … … 45 45 $Config['Web']['Title'] .= ' - finanční příspěvky'; 46 46 $DbResult = $db->query('SELECT UNIX_TIMESTAMP(time), operation, description, money FROM finance ORDER BY time DESC LIMIT '.$NewsCount); 47 while($Row = $DbResult->fetch_a rray())47 while($Row = $DbResult->fetch_assoc()) 48 48 { 49 49 $Items[] = array
Note:
See TracChangeset
for help on using the changeset viewer.