<?php require('./global.php'); $siteurl = "https://www.helpernt.com/vb"; header('Content-type: text/xml'); echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n"; echo "<urlset xmlns=\"http://www.google.com/schemas/sitemap/0.84\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/sitemap/0.84/sitemap.xsd\">"; $result = mysql_query("SELECT title, threadid , forumid FROM thread ORDER BY threadid desc"); while($row = mysql_fetch_assoc($result)) { if($row['forumid'] != 9 AND $row['forumid'] != 1) { echo "\n<url>\n<loc>".$siteurl."/showthread.php?t=".$row["threadid"]."</loc>\n<changefreq>daily</changefreq>\n</url>"; } } echo "\n</urlset>"; ?>