I think I just took a step beyond my abilities.
I'm storing html templates in a database.
When I retrieve the page, it contains some values which I replace with an ereg_replace statement.
But what if I want to store PHP code as well? If I retrieve the PHP code from the database, and PRINT or ECHO it, it doesn't go through the PHP interpreter.
So how can I have PHP code stored in a database, merge it into the final document and still have it executed?
Some pointers would be much appreciated - I can read and I can learn, but I can't think of an angle here. Any hint or pointer to a resouce appreciated!
Many thanks
Peter