Hi,
Thanks for taking a look at this. I need to generate a table for each product with checkboxs by querying the database, but i keep having problems. The table i need to generate should look like something below, where the "x" represents a checkbox which is checked.
Temp | Item 1 | Item 2 | Item 3 | Item 4 | (test codes)
A X X X
B X X X
C X X X X
This is quite difficult to explain, but i'll try. The first column represents all the temeratures in a temperature datbase table. I then need to query all the tests in the test database table, represented by the test codes, i.e item 1, item 2, etc.
I then need to query a third table test_temp databse table to see if the if the temp and test for a product is in the test_temp table, if so then a checkbox should be checked. If not, then an unchecked checkbox is displayed. The end user should be able to check and uncheck a checkbox if a product has a new test at test temperature.
Database Tables
Temperature: temp_id (PK), temp_name
Test: test_id (PK), test_name
Test_Temp: test_temp_id (PK), test_id (FK), temp_id (FK), product_id (FK)
Thanks in advance for any help, advice, suggestions. Have a nice day!!
Regards,
Steven