<?php
include ("include/config.php");
include("include/info.php");
header('Content-Type: text/xml');
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<?

 $myss = mysql_query("SELECT `id`,`add_date` FROM `programmes_programmes` ORDER BY `id` DESC");
 $site_url = $site_url['site_url'];
 while($rows = mysql_fetch_array($myss)){
$id = $rows['id'];
?>
-<url>
  <loc><? print $config['site_url']."/programmes.php?pro=".$id.""; ?></loc> 
  </url>

<? }

mysql_close();
 ?>

 </urlset>