joined:Aug 17, 2007
I'm trying to build a site using the 3 layer concept of data, application and presentation but I'm getting confused in the detail.
When there is a lot of dynamic content the application layer will be generating data for the presentation layer depending on the input from a user.
So for instance a search page result may have 4 results or 10. Usually I would loop the array fetched from SQL and the html would be added to in each loop cycle with the correct data either by a direct echo or appending a variable to be echo later in the program.
This of course means that there is html code in the application layer.
There seems no way around this as I have to produce 4 blocks of html sometimes 10 blocks of html and so on.
Is this concept just a myth or am I missing something?