Jump to content


This topic is now archived and is closed to further replies.


[SOLVED] why this dont work?

Recommended Posts

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>";

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.