I need a script to build html files from a database.
I have now a database with some registers and i need to create a html file for each register and save the name of that html file in a field of that register.
To build the html i have a html template and i need to replace 3 or 4 fields stored in each register in that template and save it like a html file. One of the fields in each register is "Title", and the name of html file will be the title ( by example if the title is "The red car" the html file will be [url removed, login to view]) .
I need i symple control panel to select a template and the registers to create the html files.