Speaking only for myself, this makes no sense at all. I simply am lost after reading it five times.

What changes?

How do you know which file to include?

Just as an example, may wish to place all of your includes in a single folder. Then you can pass the title and part of the file name as in:

Code:

<?php

$page = $_GET['page'];

echo '<title>Data_Base | ' . $page . '</title>';

require( 'path/to/includes/' . $page . '.inc.php' );

?>

I am taking some liberties here and sort of applying what I am thinking you are trying to do, but again, I just don't understand the question(s)? as they are worded.

So you could place the includes into the path/to/includes/ directory, and then use a naming convention that follows this simple rule:

{name} . inc. php

...where the {name} is the variable you pass as a GET, POST, or what ever other means you see fit. You could even place it in an array, check to see that the name is in that array, and then do some sort of error correction, security stuff, and so on.

Maybe rephrase it, or perhaps others could better help. Sorry I could not do more.

You know, at the risk of being a jerk, though just a little bit, the response back was weak. Look, I tried to figure out what you were asking, maybe others could also do a better job than I was able to. but if you are going to ask a question, and you really want the answer, try re-phrasing it or something, it would be nice to be able to assist you, but come on.

So, regarding the code, what part of it would not work, or what aspect was not included / considered?