Steps :
1) Left Join 2 tables in database to retrieve hidden setting_name and stores all of them to an php array.
2) Create full setting_name php array.
3) (left setting name) = (full setting_name) - (hidden setting_name).
4) Join elements of array with needed syntax for sql select query.
5) Join elements of array with needed syntax for header of html table.
6) Join elements of array of sql in while loop with needed syntax for displaying records to body of html table.
Codes :