Reputation: 1547
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.
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:
Monday Tuesday Wednesday ....
Breakfast Meal 1 Meal 3 Meal 6
Meal 2
Lunch Meal 3
Meal 4
Each meal has an id linking it to a meal time and a day.
Upvotes: 0
Views: 103
Reputation: 3074
Given you know the data access information for your table you could use this script: PHP MySQL tutorial - Retrieve data
You will need to format the table accordingly. I would recommend using google to figure out how to create the table.
Upvotes: 1