Jump to content

need help in displaying by column


pixeltrace

Recommended Posts

hi,

 

i need help, currently i have a page that list all thumbnails in row

now my boss needs it to be list in columns of 5

but i dont know how to do it correctly.

below is my current code

	if ($images) :
$imglist = '<table><tr class="hoverbox"><td style="padding-right:10px">';
foreach ($images as $image) {
$imglist .= '<img onmouseover="showtrail(\''.$mosConfig_live_site.'/images/mworld/product/images/'.$image.'\',\'\',\'\',\'0.0000\',\'\',\'1\',200)" width="120"  height="85" onmouseout="hidetrail();"  src="'.$mosConfig_live_site.'/images/mworld/product/images-small/'.$image.'" />';
}
$imglist .= '</td></tr></table>';
else :
$imglist = '';
endif;

 

hope you could help me with this.

 

thanks!

Link to comment
https://forums.phpfreaks.com/topic/79175-need-help-in-displaying-by-column/
Share on other sites

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.