![]() |
![]() |
![]()
Post
#1
|
|
![]() Grupa: Zarejestrowani Postów: 459 Pomógł: 26 Dołączył: 1.06.2009 Ostrzeżenie: (0%) ![]() ![]() |
Witam. Chciałem stworzyć kanał rss z plikami mojego serwisu. Napisałem kod tworzący kanał, ale niestety pliki nie pojawiają się.
![]() Oto kod: Kod <?echo'<?xml version="1.0" encoding="iso-8859-2"?>'; ?>
<rss version="2.0"> <? include('../db_connect.php'); include('../settings.php'); include('../function.php'); require_once "../".LANG."lang.php"; ?> <channel> <link><? echo''.$ust['adres'].''; ?></link> <title><? echo''.$ust['meta_title'].''; ?></title> <description><? echo $lang['rss_desc']; ?></description> <copyright><? echo''.$ust['footer'].''; ?></copyright> <generator><? echo''.$ust['meta_title'].''; ?></generator> <ttl>20</ttl> <language><? echo $lang['lang_in']; ?></language> <lastBuildDate><? echo ''.date("D, d M Y G:i:s").''; ?> GMT</lastBuildDate> <? $Query='SELECT * FROM file ORDER by id DESC limit 15'; $result = mysql_query($Query) or die(mysql_error()); while ($row = mysql_fetch_array($result)) { echo '<item> <title>'.$row['name'].' </title> <link>'.$ust['adres'].'mp3/'.$row['id'].'/'.namen($row['name']).'.html</link> <description>'.$ust['opis'].'</description> <author>'.$row['dodal'].'</author> <pubDate>'.$row['data_rss'].' GMT</pubDate> <category>Pliki</category> <guid>'.$ust['adres'].'mp3/'.$row['id'].'/'.namen($row['name']).'.html</guid> </item>'; } ?> </channel></rss> -------------------- |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 14.08.2025 - 10:05 |