Teşekkürler Arkadaşlar kodlar çalışıyor.bi sorum daha olacak aynı başlıktan sorayım.




catid kısmında 5 olanları sorgulamak istiyorum ne yapmalıyım.değiştirdiğim kodlarım aşağıdadır.

Alıntı
<?php
header('Content-Type: text/xml');
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
include("baglan.php");
$sorgu=mysql_query("SELECT * FROM jos_datsogallery ORDER BY id DESC");

echo '<gallery>

<album lgPath="http://bulancakatakoy.com/components/com_datsogallery/img_pictures/" tnPath="http://bulancakatakoy.com/components/com_datsogallery/img_thumbnails/" title="Album title" description="Album description" tn="album1/preview.jpg">';
while($sonuc=mysql_fetch_assoc($sorgu)){
echo '<img src="'.$sonuc["imgoriginalname"].'" caption="l" link="" target="_blank" pause="" />
';
}
echo '</album>

</gallery>';


?>