I am getting php content from a MySQL database and for some reason when I try to echo it after I get it from the database, the PHP isn't processed.
How do I make it so that the PHP is processed?
Here is the relevant code:
relevant excerpt from 'includes/admin/core.admin.class.php'
thanks so much.
How do I make it so that the PHP is processed?
Here is the relevant code:
PHP:
require_once(BASE_URL.'includes/admin/core.admin.class.php');
$admin = new admin($_GET['page']);
echo $admin->page_info['content']['page_content'];
PHP:
__construct($page_id) {
$sql = "SELECT * FROM ".DBTABLEPREFIX."admin_content WHERE id ='$page_id'";
$content = mysql_query($sql) or die(mysql_error());
while($row = mysql_fetch_array($content)) {
$admin->page_info['content']['page_content'] = stripslashes($row['content']);
}
}








