Question : echo image?

hi i have 1000 images on my php page. that was easy to create in a table form using dream weaver tools.
now the thing is i want the user to click on any image and it opens in a _blank windw.

I can use dream weaver to that as well but then i end up with 1000 html pages.

is there a way or script that will load any of the 1000 images with out having to do the above.cuz also adding a close page btn to all 1000 is a pain so if theresa a way to do this using php with only one page it will make the css process much easier as well. thanx :)

Answer : echo image?

for 9 imager per row you wold have to wrap them in a div with 9 * (150px + 2px border for each)
try wrapping them in 5 for example:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
<div style="width:800px;">
<?
	
for($i=1;$i<=1000;$i++)
{
   echo"<div style=\"float:left;\"><a href=\"cer/$i.jpg\" target=\"blank\">
   <img style=\"border:solid 1px #cccccc; margin: 20px;\" height=\"200\" width=\"150\" src=\"cer/$i.jpg\"/><br />$i.jpg</a></div>";
}

echo"<div style=\"clear: both;\"></div>";

?>
	
	</div>
Random Solutions  
 
programming4us programming4us