yes indeed i mean a unique identifier, a simple paired list with the html stored as a chunk in the database, i did an adventure game ages ago using this method with each unique ID being used as a page number, the routine would have some options (what do you wanna do?) clicking the link would bring up the relevant page and display it, worked well for that application.
The problem, as i am lead to believe, with the echo function is it is not an efficient piece of code (due to the nature of what it is doing i.e. it parses the code and outputs it as html, in many cases there is no need to parse the code (like in the initial example given) and it can be output as html directly). If writing a clumsy looking script without the echo function being used wherever possible means the code runs faster then in my book that makes it an efficient solution (in terms of performance at least).
When i said easier in relation to the MySQL example, say i have the following snippet (i assume the database is connected and that the query has returned a single line of data into an array called $result, the contents of the array for simplicity would be 'Content' and would be accessed using 'PageID' i.e the page contents are determined from the unique pageID identifier)
PHP Code:
echo $result['Content'];
To do the same in html is not so easy, i'd say impossible although i'm sure someone can provide a method to do this without calling an echo function.
If instead of 100's of pages there where 20 i would use the html direct within the file and use a session or post variable to determine which snippet to use. So as i said each problem has it's own efficient solution, the initial example given is an overly simplistic one which would be a case of calling the table function and the fixed html being generated for it. I believe in that example the best solution is to not use the echo function but instead to use the HTML directly outside the php compiler as per my earlier post.
swings and roundabouts...