Im putting together an inspection system this system comprises of 2 parts.
Part 1 - Capturing the data.
I have plus minus 18 forms and these are only going to grow. Each form has a varying amount of inputs and each form has it's own table in the Db. When a form is submitted the data is saved into the corresponding table in the Db. An important piece of data that is captured here is the date the form was submitted. I capture only the month as as integer ie. 09
Part 2 - Recalling the data in a table.
When i recall the data out of the Db for the given form, I need to access that Db table data and dynamically(irrespective of the length of columns in the table) populate an html table for viewing. This html table will need to reflect entries per month. So if you refer to the image below, Inspec 1, Inspec 2 etc are the column names and thus the fields we captured when the data was entered. The fact the the march column is populated means that a record for this table matched the 03 or March date and then populate that column.
I'm using PDO to interact with the Db and i am returning values from the Db, as an associative array.

Any help would be appreciated here.