Displaying values in 3-4 columns and 3 rows
<pre><code>&lt;?php
$result=mysql_query("SELECT * FROM product_food WHERE food_cat='soup'");
while($row=mysql_fetch_array($result)){
echo"&lt;tr&gt;
&lt;td&gt;&lt;img src='".$row['picture']."' onclick='addtocart(".$row['food_id'].")' /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;    &lt;b&gt;".$row['name']."&lt;/b&gt;&lt;br /&gt;
 Price:&lt;big style='color:green'&gt;
 $".$row['price']."&lt;/big&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan='2'&gt;&lt;hr size='1' /&gt;&lt;/td&gt;";
} ?&gt;
</code></pre>

<p>I've been working on an ordering system for our thesis and I'm stuck with these columns and rows. I'm not sure how I'm going to manipulate the values or the table.</p>
