I am building a basic content management system for a website and ran into a small problem...
For every page on my site I use a MySQL DB to retrieve the page contents. I have a field for title, heading, and body. I use the echo funciton in php to show the text in each one of the fields.
However, in the body field I would like to include some small php includes to have scripts show up.
Echo seems to translate everything as text, and thus my <?php require("test.php");?> never shows up.
My question is basically this; how can I get php to interpret a string as php and literal, allowing me to easily put in such an include.
Thanks.