Hi to everyone, I am having trouble with this snip and wonder if you might help?
This is suppose to display the items 5 accross the browser instead it displays them down like this: item 1 item 2 item 3 I want them displayed like this: item1 item 2 item 3 but for some odd reason it wont any ideas why? if ($main == "shop") { $get_shop_data = mysql_fetch_array(mysql_query("SELECT * FROM wt_items WHERE id = '$shopid'")); $get_items = mysql_query("SELECT * FROM wt_instock WHERE shop = '$shopid' AND howmany > '0'"); while ($items_result = mysql_fetch_array($get_items)) { $item_info = mysql_fetch_array(mysql_query("SELECT * FROM wt_items WHERE id = '$items_result[item]'")); $column++; $display_block ="<a href=$php_self?main=buyitem&itemid=$items_result[id]><img src=images/items/$item_info[image] height=75 width=75><BR><B> $item_info[name]</B></a><BR> $items_result[howmany] in stock<BR>Cost: $items_result[price]<BR> "; echo "<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td width = \"100\">$display_block</td>"; if ($column > 5) { echo "</tr><tr>"; $column = 1; } echo"</table>"; } } Thanks for your time and help Jennifer -- The sleeper has awaken --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php