Is anyone taking into consideration that PHP4 is still used by a majority of web hosts, so posting PHP5 examples might hamper development of good code for people still using PHP4?

In any case, I think this has gotten way too complicated, from my perspective at least. I am simply wondering how I can do the following:

1. User Requests Page
2. Application Begins by accessing Database
3. Determines necesary action based on request (i.e. index.php?cat=apples&page=green)
4. Grabs page data from database
5. grabs template xhtml from database
6. Application puts data in template via variables (i.e. $_PAGE['Title'], $_PAGE['Body'])
7. Sends result to browser