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.
[table=”width: 500, class: grid, align: center”]
[tr]
[td]AGENT[/td]
[td]RADIO_BUTTON_1 – PRESENT[/td]
[td]RADIO_BUTTON_2 – LATE[/td]
[td]RADIO_BUTTON_3 – ASENT[/td]
[/tr]
[tr]
[td]AGENT 1 :[/td]
[td]RADIO BUTTON WITH PRESENT OPTION[/td]
[td]RADIO BUTTON WITH LATE OPTION[/td]
[td]RADIO BUTTON WITH ABSENT OPTION[/td]
[/tr]
[tr]
[td]AGENT 2 :[/td]
[td]RADIO BUTTON WITH PRESENT OPTION[/td]
[td]RADIO BUTTON WITH LATE OPTION[/td]
[td]RADIO BUTTON WITH ABSENT OPTION[/td]
[/tr]
[/table]
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.