Hallo leute bin ganz neu hier und habe da eine kleine frage
Da ich ein anfänger bin im php coden und eigentlich nie zeit habe musste ich mich an euch wenden weil der typ der diese gallery gemacht hat mir nicht helfen will
also mein problem seht ihr hier an dem beispielhttp://www.klimax.ch.vu gallery
anstatt 5 Verschiedene bilder hat es hier 5 gleiche nebeneinander
so und nun möchte ich fragen ob mir einer helfen kann das problem zu lösen
ich danke euch jetzt schon für die hilfe
Da ich ein anfänger bin im php coden und eigentlich nie zeit habe musste ich mich an euch wenden weil der typ der diese gallery gemacht hat mir nicht helfen will
also mein problem seht ihr hier an dem beispielhttp://www.klimax.ch.vu gallery
anstatt 5 Verschiedene bilder hat es hier 5 gleiche nebeneinander
so und nun möchte ich fragen ob mir einer helfen kann das problem zu lösen
PHP:
<form method="post" action="index.php?show=gallery">
<table style="width:98%" border="0" cellspacing="1" cellpadding="0" class="forum">
<tr><td colspan="2" class="headb">Gallery</td></tr>
<form method="post" action="index.php?show=gallery">
<tr><td class="rightc">
<select class="form" id="category" name="category">
<option value="">Bereich</option>
<option value="">----</option>
<?php $category=$_REQUEST['category'];
$sql7="SELECT * FROM category WHERE `table`='gallery' ORDER BY name";
$data7=mysql_query($sql7, $db);
while ($cat = mysql_fetch_object ($data7)) {
if($category==$cat->short) {
print "<option value=\"$cat->short\" selected=\"selected\">$cat->name</option>"; }
else { print "<option value=\"$cat->short\">$cat->name</option>"; } } ?>
</select>
<input type="submit" class="form" id="change" value="Anzeigen" />
</td></tr></table></form><br />
<?php if(empty($category)) { ?>
<table border="0" cellpadding="0" cellspacing="1" class="forum" style="width:98%">
<tr><td class="headb">Gallerie</td><td class="headb" style="width:20%">Bilder</td></tr>
<?php $sql="SELECT * FROM category ORDER BY id";
$data=mysql_query($sql, $db);
while ($cat = mysql_fetch_object ($data)) {
if ($cat->table=="gallery") { ?>
<tr><td class="leftb"><div class="fontb">
<?php print "<a href=\"index.php?show=gallery&category=$cat->short\">";
secure($cat->name); echo "</a>"; ?>
</div><div class="fontm"><?php secure($cat->info); ?></div>
</td><td class="leftb">
<?php $tcount=0; $count=0;
$sql2="SELECT * FROM gallery WHERE category='$cat->short'";
$data2=mysql_query($sql2, $db);
while ($gal = mysql_fetch_object ($data2)) { $count++; }
print "$count"; ?>
</td></tr>
<?php } } ?>
</table><br />
<?php } ?>
<table border="0" cellpadding="0" cellspacing="1" bgcolor="#222222" class="forum" style="width:98%">
<?php $sql="SELECT * FROM gallery WHERE fav='1' ORDER BY name";
if(!empty($category)) { $sql="SELECT * FROM gallery WHERE category='$category' ORDER BY name"; }
$data=mysql_query($sql, $db);
while ($files = mysql_fetch_object ($data)) { ?>
<tr>
<td class="leftb"><?php print "<a href=\"index.php?show=gallerydet&pid=$files->id\">";
print "<img src=\"gallery/thumb/$files->category/$files->thumb\">"; ?>
<?php print "<a href=\"index.php?show=gallerydet&pid=$files->id\">";
print "<img src=\"gallery/thumb/$files->category/$files->thumb\">"; ?>
<?php print "<a href=\"index.php?show=gallerydet&pid=$files->id\">";
print "<img src=\"gallery/thumb/$files->category/$files->thumb\">"; ?>
<?php print "<a href=\"index.php?show=gallerydet&pid=$files->id\">";
print "<img src=\"gallery/thumb/$files->category/$files->thumb\">"; ?>
<?php print "<a href=\"index.php?show=gallerydet&pid=$files->id\">";
print "<img src=\"gallery/thumb/$files->category/$files->thumb\">"; ?> </td>
</tr>
<?php } ?>
</table>
ich danke euch jetzt schon für die hilfe