saintx adlı üyeden alıntı: mesajı görüntüle
@Asimavi; şu şekilde deneyin.

<?php  
## Veritabanı bağlantısı yapalım.  
@mysql_select_db("db_diririm", mysql_connect("db_dirim","db_sifre"));  
## Xml olarak göstermek için girilen komut  
header("Content-Type: text/xml");  
## Sitemap Bilgileri  
echo '<?xml version="1.0" encoding="UTF-8"?>';  
echo '  
<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">  
';  

## Site Menüleri  
echo '  
    <url>  
       <loc>http://konya.us/</loc>  
       <lastmod>'.date("Y").'-'.date("m").'-'.date("d").'T'.date("H:i:s").'+00:00</lastmod>  
       <changefreq>daily</changefreq>  
       <priority>0.5000</priority>  
    </url>  
      <url>  
       <loc>http://www.konya.us/haberler.html</loc>  
       <lastmod>'.date("Y").'-'.date("m").'-'.date("d").'T'.date("H:i:s").'+00:00</lastmod>  
       <changefreq>daily</changefreq>  
       <priority>0.8000</priority>  
  </url>  
  <url>  
       <loc>http://www.konya.us/formlar.html</loc>  
       <lastmod>'.date("Y").'-'.date("m").'-'.date("d").'T'.date("H:i:s").'+00:00</lastmod>  
       <changefreq>daily</changefreq>  
       <priority>0.8000</priority>  
  </url>  
';  

## Makaleleri Listele  
$haberler        = mysql_query("select * from haberler where durum='0' order by id DESC");  
    while($seoxml    = mysql_fetch_array($haberler)){  
      
echo'  
    <url>  
       <loc>http://konya.us/haberler-'.$seoxml["baslik"].'.html</loc>  
       <lastmod>'.date("Y").'-'.date("m").'-'.date("d").'T'.date("H:i:s").'+00:00</lastmod>  
       <changefreq>daily</changefreq>  
       <priority>0.5000</priority>  
    </url>  
';  
}  

echo '</urlset>';

@@saintx şimdide şu şekilde bir hata alıyorum hocam

[26-Feb-2014 21:14:19 Europe/Istanbul] PHP Warning: mysql_query() [<a href='function.mysql-query'>function.mysql-query</a>]: Access denied for user 'sttkonya'@'localhost' (using password: NO) in /home/sttkonya/public_html/sitemap.php on line 40
[26-Feb-2014 21:14:19 Europe/Istanbul] PHP Warning: mysql_query() [<a href='function.mysql-query'>function.mysql-query</a>]: A link to the server could not be established in /home/sttkonya/public_html/sitemap.php on line 40
[26-Feb-2014 21:14:19 Europe/Istanbul] PHP Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/sttkonya/public_html/sitemap.php on line 41