Einzelnen Beitrag anzeigen
  #1  
Alt 11.06.2006, 19:10:41
space space ist offline
Anfänger
 
Registriert seit: Jun 2006
Beiträge: 1
aktuelle Bilder nach Abfrage anzeigen

hallo alle zusammen

ich bin in sachen php blutiger anfänger.

meine frage nun daher:
wie kann ich in einer html tabelle die letzten 5 bilder aus einem ordner namens attachments_image auf dem server nebeneinander anzeigen lassen?

hab hier schon eine tabelle aber bei dieser müsste ich die aktualisierung immer von hand machen:
Code:
<tr>
<td class="tablea" colspan="1" ><center>
  <p class="smallfont"><span class="Stil1">-- Forum 1 --</span> <br />
  </p>
        <!-- Bilder aus Forum 1 -->

  <span class="smallfont"><expression>(mt_srand((double)microtime()*1000000))</expression>
  <expression>(($rnum=mt_rand(1,5))?"":"")</expression>
  <if($rnum==1)><then><a href="../board.php?boardid=52"><img src="attachments_image/thebrothersgrimmposter70bm.jpg" alt="-- MVCD / TVCD --" width="90" height="120" border="1" /></a></then></if>
  <if($rnum==2)><then><a href="../board.php?boardid=52"><img src="attachments_image/Retrograde.jpg" alt="-- MVCD / TVCD --" width="90" height="120" border="1" /></a></then></if>
  <if($rnum==3)><then><a href="../board.php?boardid=52"><img src="attachments_image/16blocks214wd.jpg" alt="-- MVCD / TVCD --" width="90" height="120" border="1" /></a></then></if>
  <if($rnum==4)><then><a href="../board.php?boardid=52"><img src="attachments_image/scarymovie4.jpg" alt="-- MVCD / TVCD --" width="90" height="120" border="1" /></a></then></if>
  <if($rnum==5)><then><a href="../board.php?boardid=52"><img src="attachments_image/Mord%20und%20Margaritas.jpg" alt="-- MVCD / TVCD --" width="90" height="120" border="1"  /></a></then></if>
  <if($rnum<1 || $rnum>5)><then>Bitte im Ausdruck mt_rand(1,x) im Template als x die Anzahl der Bilder in den &lt;if(...)&gt;-Zeilen einsetzen... </then></if>
  <br />
  </span>
</center></td>
<td class="tableb" colspan="1" ><center>
  <p class="smallfont"><span class="Stil1">-- Forum 2 --</span> <br />
  </p>
<!-- Bilder aus Forum 2 -->
  <expression>(mt_srand((double)microtime()*1000000))</expression>
  <expression>(($rnum=mt_rand(1,5))?"":"")</expression>
  <if($rnum==1)><then><a href="../board.php?boardid=35"><img src="attachments_image/sharkboylavagirl.jpg" alt="-- VCD / SVCD --" width="90" height="120" border="1" /></a></then></if>
  <if($rnum==2)><then><a href="../board.php?boardid=35"><img src="attachments_image/iceage2.jpg" alt="-- VCD / SVCD --" width="90" height="120" border="1" /></a></then></if>
  <if($rnum==3)><then><a href="../board.php?boardid=35"><img src="attachments_image/In%20the%20Mix.jpg" alt="-- VCD / SVCD --" width="90" height="120" border="1" /></a></then></if>
  <if($rnum==4)><then><a href="../board.php?boardid=35"><img src="attachments_image/jarhead.jpg" alt="-- VCD / SVCD --" width="90" height="120" border="1" /></a></then></if>
  <if($rnum==5)><then><a href="../board.php?boardid=35"><img src="attachments_image/poster_lg01.jpg" alt="-- VCD / SVCD --" width="90" height="120" border="1" /></a></then></if>
  <if($rnum<1 || $rnum>5)><then>Bitte im Ausdruck mt_rand(1,x) im Template als x die Anzahl der Bilder in den &lt;if(...)&gt;-Zeilen einsetzen... </then></if>
  <br />
  </span>
</center></td>
<td class="tablea" colspan="1" ><center>
  <p class="smallfont"><span class="Stil1">-- Forum 3 --</span> <br />
  </p>
<!-- Bilder aus Forum 3 -->
  <expression>(mt_srand((double)microtime()*1000000))</expression>
  <expression>(($rnum=mt_rand(1,5))?"":"")</expression>
  <if($rnum==1)><then><a href="../board.php?boardid=69"><img src="attachments_image/Final%20Destination%203.jpg" alt="-- DivX / AVI --" width="90" height="120" border="1" /></a></then></if>
  <if($rnum==2)><then><a href="../board.php?boardid=69"><img src="attachments_image/basicinstinct2.jpg" alt="-- DivX / AVI --" width="90" height="120" border="1" /></a></then></if>
  <if($rnum==3)><then><a href="../board.php?boardid=69"><img src="attachments_image/kuch8lq.jpg" alt="-- DivX / AVI --" width="90" height="120" border="1" /></a></then></if>
  <if($rnum==4)><then><a href="../board.php?boardid=69"><img src="attachments_image/16blocks214wd.jpg" alt="-- DivX / AVI --" width="90" height="120" border="1" /></a></then></if>
  <if($rnum==5)><then><a href="../board.php?boardid=69"><img src="attachments_image/Goal.jpg" alt="-- DivX / AVI --" width="90" height="120" border="1" /></a></then></if>
  <if($rnum<1 || $rnum>5)><then>Bitte im Ausdruck mt_rand(1,x) im Template als x die Anzahl der Bilder in den &lt;if(...)&gt;-Zeilen einsetzen... </then></if>
  <br />
  </span>
</center></td>
<td class="tableb" colspan="1" ><center>
  <p class="smallfont"><span class="Stil1">-- Forum 4 --</span> <br />
  </p>
<!-- Bilder aus Forum 4 -->
  <expression>(mt_srand((double)microtime()*1000000))</expression>
  <expression>(($rnum=mt_rand(1,5))?"":"")</expression>
  <if($rnum==1)><then><a href="../board.php?boardid=111"><img src="attachments_image/Jagd%20auf%20Roter%20Oktober.jpg" alt="-- DVD-R --" width="90" height="120" border="1" /></a></then></if>
  <if($rnum==2)><then><a href="../board.php?boardid=111"><img src="attachments_image/dieter.jpg" alt="-- DVD-R --" width="90" height="120" border="1" /></a></then></if>
  <if($rnum==3)><then><a href="../board.php?boardid=111"><img src="attachments_image/DocDolittle3.jpg" alt="-- DVD-R --" width="90" height="120" border="1" /></a></then></if>
  <if($rnum==4)><then><a href="../board.php?boardid=111"><img src="attachments_image/SchindlersListe.jpg" alt="-- DVD-R --" width="90" height="120" border="1" /></a></then></if>
  <if($rnum==5)><then><a href="../board.php?boardid=111"><img src="attachments_image/SinCity-Poster4.jpg" alt="-- DVD-R --" width="90" height="120" border="1" /></a></then></if>
  <if($rnum<1 || $rnum>5)><then>Bitte im Ausdruck mt_rand(1,x) im Template als x die Anzahl der Bilder in den &lt;if(...)&gt;-Zeilen einsetzen... </then></if>
  <br />
  </span>
</center></td>
<td class="tablea" colspan="1" ><center>
  <p class="smallfont"><span class="Stil1">-- Forum 5 --</span> <br />
  </p>
<!-- Bilder aus Forum 5 -->
  <expression>(mt_srand((double)microtime()*1000000))</expression>
  <expression>(($rnum=mt_rand(1,5))?"":"")</expression>
  <if($rnum==1)><then><a href="../board.php?boardid=109"><img src="attachments_image/cleoxh201012dvd4rr.jpg" alt="-- XXX --" width="90" height="120" border="1" /></a></then></if>
  <if($rnum==2)><then><a href="../board.php?boardid=109"><img src="attachments_image/Nineteen%20Collgege%20Girls%2052.jpg" alt="-- XXX --" width="90" height="120" border="1" /></a></then></if>
  <if($rnum==3)><then><a href="../board.php?boardid=109"><img src="attachments_image/skandal im kinderzimmer.gif" alt="-- XXX --" width="90" height="120" border="1" /></a></then></if>
  <if($rnum==4)><then><a href="../board.php?boardid=109"><img src="attachments_image/bareadventure5ra.jpg" alt="-- XXX --" width="90" height="120" border="1" /></a></then></if>
  <if($rnum==5)><then><a href="../board.php?boardid=109"><img src="attachments_image/Emanuelle%20in%20America.jpg" alt="-- XXX --" width="90" height="120" border="1" /></a></then></if>
  <if($rnum<1 || $rnum>5)><then>Bitte im Ausdruck mt_rand(1,x) im Template als x die Anzahl der Bilder in den &lt;if(...)&gt;-Zeilen einsetzen... </then></if>
  <br />
  </span>
</center></td></tr>
Es müssen natürlich nicht 5x5 verschieden foren sein, wenn die letzten 5 aktellste bilder aus dem attachments_image ordner angezeigt werden ist das ausreichend.
muss ich dafür überhaupt php verwenden oder ist es auch in html realisierbar?

wer kann mir dabei helfen?

Geändert von space (11.06.2006 um 19:11:43 Uhr)
Mit Zitat antworten