Gary Williams
02-25-2009, 05:06 PM
Hi All,
I am looking for/trying to write a utility, in ASP, that will work with a MySQL database (containing several tables) to display all records in a chosen table by automatically writing the html.
In my tables, row #1 holds the labels to be displayed for each field in any report requested. So if field #1 has the name "fFirst_Name", its' corresponding label (which is displayed at the top of the respective column in the report) maybe "First Name" and so on for all fields. It's the row #1 values that are used for the column heading of the html table. That makes for a much nicer table to read.
To achieve this using a looping programme is reasonable straight forward but I have to write one for each table in the database. What I want to achieve is to go a bit further by developing a utility that will::
1. Determine the number of fields in the selected table and then create the html to display the records.
2. Add an extra 2 columns to the table, one containing an "Edit" button that calls up that record in its' own table for editing, and the second column contains a "Delete" button.
3. Automatically create and "Add Record" feature for the selected table.
Has anyone come across such a utility?
Regards
Gary
I am looking for/trying to write a utility, in ASP, that will work with a MySQL database (containing several tables) to display all records in a chosen table by automatically writing the html.
In my tables, row #1 holds the labels to be displayed for each field in any report requested. So if field #1 has the name "fFirst_Name", its' corresponding label (which is displayed at the top of the respective column in the report) maybe "First Name" and so on for all fields. It's the row #1 values that are used for the column heading of the html table. That makes for a much nicer table to read.
To achieve this using a looping programme is reasonable straight forward but I have to write one for each table in the database. What I want to achieve is to go a bit further by developing a utility that will::
1. Determine the number of fields in the selected table and then create the html to display the records.
2. Add an extra 2 columns to the table, one containing an "Edit" button that calls up that record in its' own table for editing, and the second column contains a "Delete" button.
3. Automatically create and "Add Record" feature for the selected table.
Has anyone come across such a utility?
Regards
Gary