Sitedeki player bu.
Bende site kaynağından buldum bunu kullanmıyorum.
Sağtık yapıp incele dersen orada .js dosyasını görürsün.
https://www.php.net/manual/tr/class.domdocument.php
https://www.yusufsezer.com.tr/php-xml/ burada anlatımı var.
header("Content-Type: application/xml;");
$database = array('Veri1', 'Veri2', 'Veri3');
$xml = new DOMDocument('1.0', 'UTF-8');
$veriler = $xml->createElement('veriler');
foreach($database as $d){
$veri = $xml->createElement('veri', $d);
$veriler->appendChild($veri);
}
$xml->appendChild($veriler);
$xml->save('veriler.xml');
echo $xml->saveHTML();
/*** Output :
<veriler>
<veri>Veri1</veri>
<veri>Veri2</veri>
<veri>Veri3</veri>
</veriler>
*/
https://gist.github.com/psdtohtml5/5646810
https://gist.github.com/vanita5/6293f77a5d9be686210b -> Bunu düzenlersen işine yarar gibi.validate() fonksiyonu içerisinde session kontrolü yaptırırsın.
https://codecanyon.net/item/customerfriendly-download-login/411480 -> Bunun ücretsizini bulamadım.
olayı yanlış anlamışım yukarıdaki pdf i ekrana yazdırmak için.
https://github.com/spipu/html2pdf
echo "<ul>";
$xml = simplexml_load_file('rss.xml');
foreach ($xml->canel as $canel) {
foreach ($canel->item as $item) {
$id = $item->id;
$cat = $item->cat;
$city = $item->city;
$type = $item->type;
$title = $item->title;
$type = $item->description;
$type = $item->date;
foreach ($item->images->image as $image) {
echo "<li>id = $id image = $image</li>";
}
}
}
echo "</ul>";
N11'in kullandığı eklenti bu
https://i-like-robots.github.io/EasyZoom/
böyle dene
$output .= '<option value="' . $c['CatID'] . '" '. $c['CatID'] == $_GET['CatID'] ? 'selected' : '' .'>' . $indent . $c['KategoriAdiTR'] . '</option>';
http://sqlfiddle.com/#!9/0d5dbf/18 Böyle bir sorguyla halledebilirsin.
burda tüm resimleri çekiyor php tarafında explode(',', $row['resimler']) fonksiyonuyla resimleri ayırarak sadece 1. resimi alabilirsin.
Başka bir yolu vardır mutlaka ama MySql bilgim yetmiyor :)