I need to Evaluate big chunk of a string as PHP code ,that code I'm getting it from the DB and publish it's data into page this page i want to deal with it as normal PHP page to include it into other pages ,how can i do that?
This page (code.php) that get the code from DB:
Here i need to include it as PHP page not as string:
This page (code.php) that get the code from DB:
Code:
<?php
//that code for explanation not the real code
mysql_connect('localhost','root','');
mysql_select_db('testing');
$result = mysql_query('SELECT * FROM PHP');
while($row = mysql_fetch_assoc($result)){
echo $row['CODE'].";\n";
}
?>
Code:
<?php
include('code.php');
?>
Comment