Hello I've got a script that works like this:
- It reads all filenames out of a folder.
- It while loops echo "<img src...
I want to know how I can let the script only display 4 images in per row?
Can you help me with that?
Here's the script:
<?php
$image = dir('myndir/babes/babevikunnar');
while($mynd = $image->read()) {
if ($mynd == '.' || $mynd == '..') {
continue;
}
if($mynd != "index.htm") {
echo "<a href=skoda.php?skoda=myndir/babes/babevikunnar/$mynd><img src=myndir/babes/babevikunnar/$mynd width=106 height=161 border=0></a>\n";
}
}
$image->close();
?>