mattheww Posted September 5, 2010 Share Posted September 5, 2010 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 More sharing options...
wildteen88 Posted September 5, 2010 Share Posted September 5, 2010 Where are you getting the images from? If they're from the the database then have a look at Multi-column results. Link to comment https://forums.phpfreaks.com/topic/212585-display-pictures-with-php-loop/#findComment-1107463 Share on other sites More sharing options...
Sudantha Posted September 5, 2010 Share Posted September 5, 2010 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>" } Link to comment https://forums.phpfreaks.com/topic/212585-display-pictures-with-php-loop/#findComment-1107464 Share on other sites More sharing options...
mattheww Posted September 5, 2010 Author Share Posted September 5, 2010 Where are you getting the images from? If they're from the the database then have a look at Multi-column results. Yeah, from a database... And thanks (Y) That's what I wanted! Link to comment https://forums.phpfreaks.com/topic/212585-display-pictures-with-php-loop/#findComment-1107465 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.