pixeltrace Posted November 28, 2007 Share Posted November 28, 2007 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! Quote Link to comment https://forums.phpfreaks.com/topic/79175-need-help-in-displaying-by-column/ Share on other sites More sharing options...
pocobueno1388 Posted November 28, 2007 Share Posted November 28, 2007 This is such a common question that there is a tutorial made for it http://www.phpfreaks.com/forums/index.php/topic,95426.0.html Quote Link to comment https://forums.phpfreaks.com/topic/79175-need-help-in-displaying-by-column/#findComment-400767 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.