I was wondering if someone could help me find something on how to generate pages from content in the database. I want to just have listings that when clicked on go to one page that pulls the content for that listing on that page, instead of having a million static pages. Kind of like a template page that just inserts the information from the listing that was clicked on. How does the page that pulls this info know what listing it came from? Thanks
Just post back to the same file with the query string, process it, pull from the db and its the same page. Short example would be index.php, the base page with a form... Say its about cars. You want to see toyotas so its index.php?query=toyotas.(this comes from a form or drop down box or links) You have to put the code in to pull all the toyotas from the DB. Here's an article about it http://www.codewalkers.com/c/a/Database-Articles/Create-dynamic-sites-with-PHP-MySQL/10/ Answer to the last question is : the page is defined by the selection made, if nothing is selected it should show the main listing page.