Current Path : /data/web/virtuals/51568/virtual/www/www/galerie/ |
Current File : /data/web/virtuals/51568/virtual/www/www/galerie/galerie-rychlost.php |
<?php require_once "../../class/pdoDB.class.php"; $pdo = new pdoDB(); $html = ""; $id = 77; $slozka = "http://www.zsrepubliky/cz/ftp/galerie/2021/"; $query = "SELECT `id`, `popis`, `ext` FROM `soubory` WHERE galerie_id=:galerie_id order by `poradi`"; $fotky = $pdo->queryAll($query, Array(':galerie_id' => $id)); forEach ($fotky as $fotka){ $odkaz = $slozka.$fotka->id.'.'.$fotka->ext; $odkazMala = $slozka.$fotka->id.'_m.'.$fotka->ext; $html .= "$odkazMala<br />"; } echo $html; ?>