Problem with displaying in 3 colums

Discussion in 'PHP' started by adamjblakey, Aug 23, 2007.

  1. #1
    Hi,

    Can anyone see why this won't display in 3 columns? I looks fine to me but it is displaying in one line.

    	<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>
    Code (markup):
    Cheers,
    Adam
     
    adamjblakey, Aug 23, 2007 IP
  2. ssanders82

    ssanders82 Peon

    Messages:
    77
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Is that some sort of PHP templating system like SMARTY?
     
    ssanders82, Aug 23, 2007 IP
  3. gibex

    gibex Active Member

    Messages:
    1,060
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    95
    #3
    can you give us more details about template system you used? it's different than SMARTY.
     
    gibex, Aug 23, 2007 IP
  4. adamjblakey

    adamjblakey Active Member

    Messages:
    1,121
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    80
    #4
    Yes this is using smarty, sorry i should have mentioned this.
     
    adamjblakey, Aug 23, 2007 IP