Hi All,

I need some guidance in creating a form that will generate from a mySQL table. The form needs to work as follows:

I have a drop-down list where I can select a set of criteria as below:
08:00 - 17:00
09:00 - 18:00
10:00 - 19:00
11:00 - 20:00
12:00 - 21:00

When the user selects one of these options, the query needs to query mySQL table and create a form based on the result.
The SQL query would be a plain select * from tablename (thus returning all row that have the set criteria)
The first column returned, call it 'name' needs to be the field title.
Next to this field there will then be a series of radio buttons ->> Present, Late, and Absent.
Field 2 will be row 2 from the result set with the same series of radio buttons.


The table below gives an indication of how the returned form should be created. This is assuming a drop-down option had already been selected. (The First row show in the table is not required, I am only showing it to illustrate how I want the fields to be viewed.
AGENT RADIO_BUTTON_1 - PRESENT RADIO_BUTTON_2 - LATE RADIO_BUTTON_3 - ASENT
AGENT 1 : RADIO BUTTON WITH PRESENT OPTION RADIO BUTTON WITH LATE OPTION RADIO BUTTON WITH ABSENT OPTION
AGENT 2 : RADIO BUTTON WITH PRESENT OPTION RADIO BUTTON WITH LATE OPTION RADIO BUTTON WITH ABSENT OPTION


You help and guidance is greatly appreciate. I think the sources I have been using is completely wrong and I have made absolutely no progress.