[Wolves] RSS feeds

sparkes sparkes at phreaker.net
Thu Feb 19 13:43:57 GMT 2004


the following snippit of php would do what you are after from a mysql
query (not shown)

hope this helps

sparkes

echo"    
<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"
                  xmlns:dc=\"http://purl.org/dc/elements/1.1/\">
    
        <channel>
            <title>
                  $chantitle
              </title>
            <description>
                  $chandesc
              </description>
        </channel>";
          
       for (list($title,$link,$desc)=mysql_get_row($yourquery))
       {
               echo "
        <item>
            <title>
                   $title
               </title>
            <link>
                  $link
               </link>
               <description>
		$describtion
               </description>
        </item>";
       }





More information about the Wolves mailing list