I have a table that holds trusted page data in HTML and PHP, however I am having trouble trying to parse the PHP and then showing the complete page in the browser.
Just as an example, imagine I have this code in the table:
<p>This is some <strong>test</strong> text which includes some <?php echo "PHP";?></p>
I want to be able to echo this out onto my page, however as I said I cant seem to get the PHP pased.
I have tried simply getting the content and echoing the variable and I have tried using the eval() function but to no avail.
Can someone suggest a way I could do this that doesnt impact too much on performance?