Dynamically create content of table php
<p>I am trying to create a table where users choose which week they want - 1 to 52, and then across the top of the table have the days Monday through Sunday and down the side 5 different meal times.</p>

<p>I would like to know how i would fill the contents of the table with values stored in a database that correspond the the right day and meal time? In a .php webpage. for example:</p>

<pre><code>             Monday    Tuesday    Wednesday    ....
Breakfast    Meal 1    Meal 3     Meal 6
             Meal 2

Lunch        Meal 3
             Meal 4
</code></pre>

<p>Each meal has an id linking it to a meal time and a day.</p>
