illegal01 adlı üyeden alıntı:
mesajı görüntüle
google php sitemap kaqbul ediyor mu?
32
●3.671
- 08-09-2008, 13:05:44
. − <urlset xsi:schemaLocation=" http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/09/sitemap.xsd"> <br/> <b>Warning</b> : mysql_fetch_array(): supplied argument is not a valid MySQL result resource in <b>/home/flashoyun/public_html/1.php</b> on line <b>14</b> <br/> </urlset>
böyle bir hata verdi dediginizi yapınca - 08-09-2008, 13:26:52Üyeliği durdurulduSelect * from oyunlar WHERE (durum='a') order by id desc
bu sorgu dogru mu ?? bi de parantezleri kaldırıp da dener misin
Select * from oyunlar WHERE durum='a' order by id desc
gibi
- 08-09-2008, 13:42:04son eklenenleri çagıran kod bu...
buna göremi uyarlayacagız acaba
<? $sql=@mysql_query("Select * from oyunlar order by id DESC limit 12"); while ($oyun=mysql_fetch_array($sql)) { $oyun_kat=mysql_fetch_array(@mysql_query("Select * from kategori where id='$oyun[oyun_kategori]'"));?> <td> <table border="0" cellpadding="0" cellspacing="0" width="120" align="center"> <tr><td height="15"></td></tr> <tr> <td width="100" height="70" class="oyun_resim"><a href="<?=$oyun_kat[k_adi_seo];?>/<?=$oyun[oyun_adi_seo];?>-<?=$oyun[id];?>.html" title="<?=$oyun[oyun_adi];?> Oyunu Oyna"><img border="0" src="<?=$oyun[oyun_resim];?>" width="100" height="75" alt="<?=$oyun[oyun_adi];?> Oyunu" /></a></td> </tr> <tr><td height="4"></td></tr> <tr><td align="center" class="tdg"><a href="<?=$oyun_kat[k_adi_seo];?>/<?=$oyun[oyun_adi_seo];?>-<?=$oyun[id];?>.html" class="pt1" title="<?=$oyun[oyun_adi];?> Oyunu Oyna"><?=$oyun[oyun_adi];?></a></td></tr> </table> </td> <? $listele++; if($listele ==3){ echo "</tr><tr>"; $listele=0; } ?><? } ?> - 08-09-2008, 13:54:12
<?php include 'ayarlar.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/09/sitemap.xsd"> <?php $sql=mysql_query("Select * from oyunlar WHERE order by id desc"); while ($oyun=mysql_fetch_array($sql)) { $oyun_kat=mysql_fetch_array(mysql_query("Select * from kategori where id='".$oyun[oyun_kategori]."'"));?><url> <loc>http://www.flash-oyun.net/<?=$oyun_kat[k_adi_seo];?>/<?=$oyun[oyun_adi_seo];?>-<?=$oyun[id];?>.html</loc> <priority>0.5</priority> <changefreq>daily</changefreq> </url> <?php } ?> </urlset>Birde böyle dene bakalım. - 08-09-2008, 14:04:29yine hata verdi
www.flash-oyun.net/1.php
<urlset xsi:schemaLocation=" http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/09/sitemap.xsd"> <br/> <b>Warning</b> : mysql_fetch_array(): supplied argument is not a valid MySQL result resource in <b>/home/oyunin/public_html/1.php</b> on line <b>14</b> <br/> </urlset>
- 08-09-2008, 14:28:57
<?php include 'ayarlar.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=" [url=http://www.sitemaps.org/schemas/sitemap/0.9]Index of /schemas/sitemap/0.9[/url] http://www.sitemaps.org/schemas/sitemap/09/sitemap.xsd"> <?php $sql=mysql_query("Select * from oyunlar WHERE order by id desc"); while ($oyun=mysql_fetch_array($sql)) { $oyun_kat=mysql_fetch_array(mysql_query("Select * from kategori where id='".$oyun[oyun_kategori]."'")); echo mysql_error(); ?><url> <loc>http://www.flash-oyun.net/<?=$oyun_kat[k_adi_seo];?>/<?=$oyun[oyun_adi_seo];?>-<?=$oyun[id];?>.html</loc> <priority>0.5</priority> <changefreq>daily</changefreq> </url> <?php } ?> </urlset>Şunu deneyip verdiği hatayı yazarmısın. - 08-09-2008, 18:00:27verdigi hata bu
<urlset xsi:schemaLocation=" [url=http://www.sitemaps.org/schemas/sitemap/0.9]Index of /schemas/sitemap/0.9[/url] http://www.sitemaps.org/schemas/sitemap/09/sitemap.xsd"> <br/> <b>Warning</b> : mysql_fetch_array(): supplied argument is not a valid MySQL result resource in <b>/home/*****/public_html/1.php</b> on line <b>14</b> <br/> </urlset>
not: sitemap dosyasını 1.php diye ftp attım... - 08-09-2008, 19:17:01
<?php include 'ayarlar.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/09/sitemap.xsd"> <?php $sql=mysql_query("Select * from oyunlar order by id desc"); while ($oyun=mysql_fetch_array($sql)) { $oyun_kat=mysql_fetch_array(mysql_query("Select * from kategori where id='".$oyun[oyun_kategori]."'")); echo mysql_error(); ?><url> <loc>http://www.flash-oyun.net/<?=$oyun_kat[k_adi_seo];?>/<?=$oyun[oyun_adi_seo];?>-<?=$oyun[id];?>.html</loc> <priority>0.5</priority> <changefreq>daily</changefreq> </url> <?php } ?> </urlset>Şimdi çalışması lazım. Eğer yinede çalışmıyorsa mysql bilgilerini ve değişkenlerini kontrol et.