I’ve searched the web trying to find examples of how to store tabular data in MySQL and loop through the rows to assemble a table using PHP, but no luck.
Here is a sample of my Excel file that I want to insert into MySQL. I then want to display it with PHP/HTML in its tabular form.
Keep in mind I have a lot of tables exactly like this for different countries so I am looking for a good MySQL schema to efficiently store this data, then have PHP make use of it by looping through the rows and id’s to pull the correct data.
1) How would you store this in MySQL?
2) How would you loop through the database with PHP to build columns?
Table sample can be previewed here:
[IMG]