I'm doing an CMS. Storing everything between the <BODY> tags in a database including PHP script.
Accessing the page stored in the database in the following style: index.php?page=xxxx
Getting the body data from the database and store it in a variable $HTMLCode
ex. $HTMLCode="<br><?PHP phpinfo();?><br>";
On the index page, I just whant to print the variable.
<body>
<?php echo $HTMLCode;?>
</body>
The problem is that the script stored in the variable does not execute.
So my question is, can it be done or am I out in the blue.
Thanks
Jan