ich möchte eine Art Galerie haben, so das 3 x 3 oder auch 4x4 Bilder Tabelarisch angeordnet sind.
Die Bilder Url und die Artikelbeschreibung wird freigegen wenn in meiner Sql Datenbank in der Tabelle im Eintrag "galry" auf dem Server eine 1 steht.
Die Bilder werden zur Zeit untereinander angezeigt dies kann man auf der Webseite: http://www.cf24-auktion.de nachschauen.
Die Bilder werden in einer Template_index_php_html mit dem Befehl <? print $TPL_1euro_auktion ?> sichtbar.
Also das ist der gesamte code aber es geht wie gesagt nur um die anordnung der bilder also ist im Code der Bereich wichtig
Würde mich echt freuen wenn mir jemand behilflich sein kann.
Die Bilder Url und die Artikelbeschreibung wird freigegen wenn in meiner Sql Datenbank in der Tabelle im Eintrag "galry" auf dem Server eine 1 steht.
Die Bilder werden zur Zeit untereinander angezeigt dies kann man auf der Webseite: http://www.cf24-auktion.de nachschauen.
Die Bilder werden in einer Template_index_php_html mit dem Befehl <? print $TPL_1euro_auktion ?> sichtbar.
Code:
/* 1 euro */ $TPL_1euro_auktion=""; $query = "select id,title,starts,photo_uploaded,pict_url from auctions where galry=1 AND closed=0;"; $result = mysql_query($query); if ( $result ) $num_auction = mysql_num_rows($result); else $num_auction = 0; if ($num_auction!=0){ if($num_auction<=$alex_max_1euro_auktion){ $cv=0; while($cv<$alex_max_1euro_auktion){ $arr[$cv]=$cv; $cv++; } } else { $cv=0; $xcv=rand(0,$num_auction-$alex_max_1euro_auktion); for($kontor=0;$kontor<$alex_max_1euro_auktion;$kontor++){ $arr[$kontor]=$kontor+$xcv; } } $cv=0; while($cv<$alex_max_1euro_auktion && $cv<$num_auction){ $bgcolor="#F2F7FE"; $title = ""; $id = ""; $date = ""; $picture = 0; $pict_url = 0; $galry = 0; $title = mysql_result($result,$arr[$cv],"title"); $id = mysql_result($result,$arr[$cv],"id"); $date = mysql_result($result,$arr[$cv],"starts"); $picture = intval(mysql_result($result,$arr[$cv],"photo_uploaded")); $pict_url = mysql_result ( $result, $arr[$cv], "pict_url" ); $galry = mysql_result ( $result, $arr[$cv], "galry"); $cv++; $year = substr($date,0,4); $month = substr($date,4,2); $day = substr($date,6,2); $hours = substr($date,8,2); $minutes = substr($date,10,2); $seconds = substr($date,12,2); if($title!=""){ if ($galry!=0) if ($picture!=0) if ($photo_uploaded!=0) $photo_uploaded= $uploaded_path.$pict_url; $TPL_1euro_auktion.= "<table cellspacing=2 cellpadding=2 border=0>"."<align=center>"."<img src=\"$uploaded_path.$pict_url\" width=68,height=68 border=0>"." <Font Face=\"Arial,Arial,Helvetica\" Size=\"1\"> <a href=\"item.php?id=$id&SESSION_ID=$sessionIDU\">".stripslashes($title)."</td></TR></table>"; } } }
Code:
$TPL_1euro_auktion.= "<table cellspacing=2 cellpadding=2 border=0>"."<align=center>"."<img src=\"$uploaded_path.$pict_url\" width=68,height=68 border=0>"." <Font Face=\"Arial,Arial,Helvetica\" Size=\"1\"> <a href=\"item.php?id=$id&SESSION_ID=$sessionIDU\">".stripslashes($title)."</td></TR></table>"; } } }
Kommentar