For my online store i would like about three items to be displayed in one row however because of the php code i wouldn't know how to display it like this. currently the items are displayed one after the other only 1 item per row which makes the page look a bit crap. can anyone please help. i will post the code below.
thanks in advanced.
[PHP] if (mysql_num_rows ($get_suit_res) > 0 ) {
$display_block = "<p><em>Sor ry no items in this Smart</em></p>";
while ($Suits = mysql_fetch_arr ay($get_suit_re s)) {
$Suit_id = $Suits[Suit_ID];
$Suit_title = stripslashes($S uits[Suit_Brand]);
$Suit_price = $Suits[Suit_Price];
$Suit_Image = $Suits[Suit_Image];
$display_block .= "
<table align=\"center\ ">
<tr>
<td>
<a href=\"showitem .php?Suit_ID=$S uit_id\">$Suit_ title</a>
<h2>£$Suit_pric e</h2>
<img src=\"$Suit_Ima ge\" width=\"100\" height=\"200\"> </img>
</td>
</tr>
</table>";
}
$display_block .= "<ul>";
}
}
}
}[/PHP]
thanks in advanced.
[PHP] if (mysql_num_rows ($get_suit_res) > 0 ) {
$display_block = "<p><em>Sor ry no items in this Smart</em></p>";
while ($Suits = mysql_fetch_arr ay($get_suit_re s)) {
$Suit_id = $Suits[Suit_ID];
$Suit_title = stripslashes($S uits[Suit_Brand]);
$Suit_price = $Suits[Suit_Price];
$Suit_Image = $Suits[Suit_Image];
$display_block .= "
<table align=\"center\ ">
<tr>
<td>
<a href=\"showitem .php?Suit_ID=$S uit_id\">$Suit_ title</a>
<h2>£$Suit_pric e</h2>
<img src=\"$Suit_Ima ge\" width=\"100\" height=\"200\"> </img>
</td>
</tr>
</table>";
}
$display_block .= "<ul>";
}
}
}
}[/PHP]
Comment