Bildergalerie :
include("global.php");
include("functionen.php");
//Dateien aus Galerie - DB aussuchen ...
//Zellen einlesen ...
$file = file("./templates/bild.html");
foreach ($file AS $line) {
$zelle .= $line;
}
$sql_galerie = "SELECT * FROM squ_pics WHERE Fest = 'Galerie'";
$res_galerie = send_sql($DB,$sql_galerie);
$zeile = 0;
echo "";
while($obj_galerie = mysql_fetch_object($res_galerie)) {
echo "";
$bildzelle = $zelle;
$bildzelle = str_replace("##Bild##","",$bildzelle);
$bildzelle = str_replace("##Bildtext##","$obj_galerie->Name",$bildzelle);
echo $bildzelle;
echo " | ";
if ($zeile < 4) $zeile ++;
else {
echo " ";
$zeile = 0;
}
}
?>
|
|
|