adamjblakey Posted August 31, 2007 Share Posted August 31, 2007 Hi, Can anyone see why this won't display in 3 columns? The code looks fine to me but it is displaying in one line. I am using smarty template system. <table width="550" border="0" cellspacing="0" cellpadding="0"> {foreach from=$results item=result name=results} {$item eq '0'} {$items eq "\t<tr><td><tr>\n"} {$itemed eq "\t</tr>\n"} {if $item eq '0'} {$items} {/if} <td valign="top"><table width='175' border='0' cellspacing='0' cellpadding='0'> <tr> <td height='23' background='images/top-ads-bar.JPG'><table width='100%' border='0' cellspacing='0' cellpadding='3'> <tr> <td><a href='site-details.php?id={$result.id}' class="sheaderlinks">{$result.sitename}</a></td> </tr> </table></td> </tr> <tr> <td valign="top" ><table width='100%' border='0' cellspacing='0' cellpadding='8'> <tr> <td class="topnavmiddle"> <center>{$result.description} </td> </tr> </table></td> </tr> </table> </td> {$item++} {if $item eq '3'} {$item eq '0'} {/if} {if $item eq '0'} {$itemed} {/if} {/foreach} </table> Cheers, Adam Quote Link to comment https://forums.phpfreaks.com/topic/67421-problem-with-displaying-in-3-colums/ 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.