Search the Community
Showing results for tags 'rss'.
-
I have a rss.php for my web site which fetch all articles from all catalog and works fine BUT NOW I want NOT all articles from all catalog I want only catalog " my_catalog_1" I want fetch all articles from " catalog 1 " here is my rss.php now (which work fine fetch all articles) ======================= <?php include('connect.php'); $sql = "SELECT * FROM carbon_topics ORDER BY id DESC LIMIT 20"; $query = mysql_query($sql) or die(mysql_error()); header("Content-type: text/xml"); echo "<?xml version='1.0' encoding='UTF-8'?> <rss version='2.0'> <channel> <title>9lessons | Programming Blog </title> <link>http://example.com</link> <description>Programming Blog </description> <language>en-us</language>"; while($row = mysql_fetch_array($query)) { $Topic=$row['Topic']; $ID=$row['ID']; echo "<item> <title>$Topic</title> <link>http://example.com/t/$ID</link> </item>"; } echo "</channel></rss>"; ?> ===================== here is my database (this database name is forum_catalog) this is the catalog it contains :" news , questions, help " and now I want only fetch articles from table(forum_catalog) =>news how to done that?
-
I tried to solve problem, but without success, so I am here to seek for some help. I have folder on web server, that contains subfolders and pdf files. I need PHP script that monitors folder and subfolders and create XML for RSS feed on site homepage whe new files are added to folders. Site is on local network only, it is not accesible via Internet. I tried number of scripts but without success. Any advice please?