Ugh I thought ya had it there.. almost.. theres just one lil problem- the every 4th item is being missed completely. so now I have this:
$count = 1;
echo ("<table width='420'><tr>");
while($each_item = mysql_fetch_array($get_items_query)) {
if ($count >= 4) { echo ("</tr><td colspan='3'><br></td></tr><tr>");
$count = 1; }
else{
echo ("<td>$count<table width='120' height='120' style='border: 1px solid
#999999;'><tr><td align='center'>
<a href='index.php?p=productdetails&prodid=".$each_item['id']."'>
<img src=".$each_item['imagepath']." border='1' alt='".$each_item
['productname']."' border='0'>
<br>".$each_item['productname']."</a>
</td></tr></table></td>");
$count++;
}
}
echo ("</tr></table>");
n it shows item 1, 2, 3, misses 4, shows 5, 6, 7, misses 8 n well.. you get the idea.