Jump to content

display pictures with php loop


mattheww

Recommended Posts

I want to display pictures in a table using a PHP loop or something, for example 3 pictures in one row, and then when that row has filled, move to the next row, So I can have a grid of pictures, (similar to that on facebook, when your viewing photo albums)... But I've no idea how to do it!

Link to comment
https://forums.phpfreaks.com/topic/212585-display-pictures-with-php-loop/
Share on other sites

I want to display pictures in a table using a PHP loop or something, for example 3 pictures in one row, and then when that row has filled, move to the next row, So I can have a grid of pictures, (similar to that on facebook, when your viewing photo albums)... But I've no idea how to do it!

 

 

just echo the HTML tags inside the loop

 


while($data=mysql_fetecharray($result){


echo "<img src=".$data['image_path']."width=xx hight=xx><img>"

}


Archived

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

×
×
  • Create New...

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.