Revision 32
Added by ryan about 20 years ago
| trunk/wb/modules/news/rss.php | ||
|---|---|---|
| 25 | 25 |
|
| 26 | 26 |
// Include WB files |
| 27 | 27 |
require_once('../../config.php');
|
| 28 |
require_once(WB_PATH.'/framework/class.database.php'); |
|
| 28 | 29 |
require_once(WB_PATH.'/framework/class.frontend.php'); |
| 29 | 30 |
$database = new database(); |
| 30 | 31 |
$wb->get_page_details(); |
| ... | ... | |
| 68 | 69 |
} else {
|
| 69 | 70 |
$query = "SELECT * FROM ".TABLE_PREFIX."mod_news_posts WHERE page_id=".$page_id." AND active=1 ORDER BY posted_when DESC"; |
| 70 | 71 |
} |
| 71 |
$result = mysql_query($query);
|
|
| 72 |
$result = $database->query($query);
|
|
| 72 | 73 |
|
| 73 | 74 |
//Generating the news items |
| 74 |
while($item = mysql_fetch_array($result)){
|
|
| 75 |
while($item = $result->fetchRow($result)){
|
|
| 75 | 76 |
|
| 76 | 77 |
echo "<item>"; |
| 77 | 78 |
echo "<title>".$item["title"]."</title>"; |
Also available in: Unified diff
Fixed some DB code for RSS script