mcburn83
Lieutenant
- Registriert
- Jan. 2006
- Beiträge
- 524
Hallo, ich bin grad etwas sehr verwirrt und geschafft von der Arbeit. Aber ich würd mein kleines Script hier gerne heute Abend noch online stellen, meine Frage ist wie mach ich es das er nach jedem 4. Bild welches er findet eine neue Tabellenzeile startet?
das ist was ich bislang habe, danke schonmal für Hilfe.
Gruß Burn
HTML:
<html>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="100%" height="96" valign="top" bgcolor="#000000"><img src="jpg/boonwinlogo.jpg" alt="" width="248" height="110"></td>
</tr>
<tr>
<td height="357" valign="top">
PHP:
<?php
$handle=opendir('pics/'); //pics ist der Ordner in dem sich die Bilde befinden
$count=1;
echo "<table>";
while ($file = readdir ($handle) ) {
if ($file != "." && $file != ".." && $file != "pic_gallery.html") {
echo "<tr>\n";
echo "<img src=\"pics/$file\">";
echo "</tr>\n";
$count++;
}
if ($count = 4) {
echo "<td> </td>";
}
}
echo "</table>\n <br>";
closedir($handle);
?>
HTML:
</td>
</tr>
</table>
</body>
</html>
Gruß Burn