When you go to this page you can see what I mean
http://korro.ko.ohost.de/paddy/Dir.php
The thumnails are showed as a rubisch not is one line, In the script I wrote that there must be 6 colums and 3 rows, but that does not work.
That this does not work it is ok for me.
But on the way it is showing now the thumnails it is not nice. Between some thumnails is more space as between other thumnails. Also the thumnails in the rows are not in one line.
What did I wrong??
This is the script.
<? // IvoDKA photo Script // Configuratie $woord="Dir"; // naam vd php file $path2 = "uploads"; // dir waar thumbnails in staan $path = "uploads"; // dir waar foto's in staan $title = "$gallery Paddy Kelly Page ". ($page + 1); // header, dit staat boven de plaatjes. $header = "$gallery"; // Configuratie $clm = "6"; // Aantal kolommen $rows = "3"; // aantal rijen $t_w = "90"; $t_h = "90"; ?> <html> <head><title>Foto's :: <? echo $gallery ?></title> </head> <body bgcolor='#DBDBDB' leftmargin='0' topmargin='0'> <? echo "<h1>$header</h1>"; echo "<center><b><b><h2>$title</h2></b><br>"; $min = (1+($page * 20)); $max = (($page +1) * 20); $number = $clm * $rows; $break = (($page * 20) + $clm); echo "<table border=0 cellpadding=0 cellspacing=0><tr>"; $d = dir("$path2"); $count = -1; while($entry=$d->read()) { if (($count >= $min) AND ($count <= $max)){ if(eregi(".jpg|.jpeg|.gif|.bmp|.png", $entry)){ ClearStatCache(); $size = GetImageSize("$path/$entry"); $size[0] = $size[0] + 20; $size[1] = $size[1] + 25; $file_size=fileSize("$path/$entry"); $file_size = round($file_size / 1000) . "k"; echo ("<td><a href=\"#\" onmouseover=\"window.status='Vergroten';return true;\" onmouseout=\"window.status=''; return true\" onclick=\"window.open('$path/$entry','pix$count','width=$size[0],height=$size[1],innerwidth=$size[0],innerheight=$size[1],directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no,top=0,left=0,leftmargin=0,topmargin=0,marginwidth=0,marginheight=0,screenX=0,screenY=0');return false\"><img src='$path2/$entry'"); echo " border=0 alt=$count height=$t_h></a> <br> </td>\n"; // width=$t_w } if ($count == $break){ echo "</tr>\n<tr>\n"; $break = $count + $clm; } } $count++; } $d->close(); echo "</tr></table>"; $pages = ($count / 20); $pageplus = ($page + 1); $pagemin = ($page - 1); if (($page + 1) < $pages){ $volgende = " | <a href=$woord.php?gallery=$gallery&page=$pageplus>Next 20 Pictures</a> |"; } if (($page+1) > "1"){ $vorige = "| <a href=$woord.php?gallery=$gallery&page=$pagemin>Previous 20 Pictures</a> |"; } // Footer, dit staat onder de plaatjes. echo "$vorige $volgende<br>"; ?> </div> </body> </html> <img src="http://korro.ko.ohost.de/upload.gif" Value="Open Window" onclick="window.open('http://korro.ko.ohost.de/paddy/uploaden.php', 'Sample', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=300,height=105')">