Jump to content


Photo

[SOLVED] why this dont work?


  • Please log in to reply
No replies to this topic

#1 corillo181

corillo181
  • Members
  • PipPipPip
  • Advanced Member
  • 896 posts

Posted 26 April 2006 - 03:46 AM

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;

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





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users