3
Answers

2 comboboxes - 1 for tables in a DB, the other - datafields in a table

Trifon Dinev

Trifon Dinev

15y
2.6k
1

Dear All,
I have a database with 5 tables with one column. I want to use 2 comboboxes - first to have the names of the tables and second to have the fields (without primary key) of the tables so when I choose one field from the second combobox,  I can see the data written in it.
Please, help me to do this.
Regards,
Trifon.
Answers (3)
0
Trifon Dinev

Trifon Dinev

NA 78 0 15y

I have one database in MySQL with 9 tables, most of them with the same fields but for different objects.
for example: radar, cvor, glide_path, etc.
with fields: id, datetime, status, door_open, smoke, high_temp, generator where is written 0 for normal, 1 for warning and 2 for alarm.
in one dropdownlist I have the names of tables: radar, cvor, glide_path
in the other dropdownlist I want to see datetime, status, door_open, smoke, high_temp, generator.
I will have 2 radiobuttons for 1 - warning and 2 - alarm
so depending of what I have choosen in these dropdownlists and radiobuttons I can  present the data in a table for some time from .... to ....
That's it.
Thanks in advance.
Trifon.
Accepted
0
Trifon Dinev

Trifon Dinev

NA 78 0 15y

I've solved my problem.
Thanks.
0
Niradhip Chakraborty

Niradhip Chakraborty

NA 6.5k 527k 15y
Not Clear. Can you explain it bit more.