• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

html shop offers 3 in row

Mauzim

Member
Joined
Jan 3, 2011
Messages
568
Reaction score
9
HTML:
    if(count($offer_list['item']) > 0)
    {
      $main_content .= '<table cellspacing="2" cellpadding="2" width=30>';
      foreach($offer_list['item'] as $item)
      {
        $main_content .= '<td class="shop">
        <a class="shop" style="display: block;" href="/shop/item/id/'.$item['id'].'">
        <center><img src="item_images/'.$item['item_id'].'.gif"><br><font color="white"><b>'.$item['name'].'</font></b><font color="red"> <b> '.$item['points'].' points</font></b>';
        if(!$logged)
        {
          $main_content .= '<p><b><a href="/account">[Login to buy]</a></b>';
        }
        else
        {
  $main_content .= '<br><b><font size=1 color="white">Your points balance is: '.$user_premium_points;
          $main_content .= '<br><font color="white"> <fieldset class="shop"><legend>DESCRIPTION</legend>'.$item['description'].'</fieldset></font><br><font color="white"><b> [Click to buy] </b></font></form> </a></center></td>';
        }
        $main_content .= '';
      }
      $main_content .= '</tr></table>';
    }

how to make it like only 3 offers in row now i have one row and all offer is in 1 line
 
Back
Top