Friday, January 21, 2011

Creating an RSS Feed in PHP

Query from the DB to retrieve the contents. 
$query = "SELECT title, link, description, pubDate FROM
   articles LIMIT 10";
$result = mysql_query($query); 
Then add the XML format as shown below and finally print the xmlString variable. 
 

No comments:

Post a Comment

Customizing the Search form - Drupal

To change the label text and text inside the search box and the text on the submit and changing the Submit button image, you can use the fo...