Hi FishMonger,
Thanks for the links.
I have to admit I am not the most experienced with databases and have only recently started PHP web development linked to MySQL databases due to a change in jobs.
I have developed a content management system for our websites so a user can edit a webpage without any web programming experience.
At the moment I have a table for ever page on the site (Page_<page name>) and insert a new record for every change the user makes. This means that we have a complete history of changes so we can go back if we need to.
I also have a table (Page_List) which holds the name, filename and table name of all the pages in the site.
I use this for the sitemap and to search the site.
The search function reads through the Page_List table and for each table name it finds (Page_<page name>) selects the last record from the from this page table.
If the search string exists I display it on the search page.
You say its poorly designed, can you explain why? Can you give me some idea how to improve it?
Thanks for your help