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] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.