Drop Down Box

Hi Everyone,

I am trying to have a drop down box that the options are table names inside a MySQL database. So if a new table was added to the database, it would also add the option to the drop down box

Thanks in advance! :smiley:
James

Practically it’s impossible but there is one way you have to create one table which will contain all the tables name and have to fetch the table_name from this tabel. Suppose you create table

Table_list

ID Tbl_name
1 tbl1
2 tbl2

now use select * from Tbl_name so that you can get all the table names.

Hope you find it helpful

Sponsor our Newsletter | Privacy Policy | Terms of Service