corillo181 Posted April 26, 2006 Share Posted April 26, 2006 isn't this supossed to break table into data of 2's or i guess i don't know how to work with looping tables and pictures;[code]<table border="1px" width="200"><tr><? $path ="/Gallery/thumbs/";$handle = opendir($path);while(false !==($file=readdir($handle))) { if($file !="." && $file !="..") { for($i=0;$i<2;$i++){ echo"<td><a href=$path/$file><img height=\"100\" width=\"100\" src=$path/$file></a></td>";}}closedir($handle);?></tr></table>[/code] Link to comment https://forums.phpfreaks.com/topic/8427-solved-why-this-dont-work/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.