hello, I am trying to deploy a mysql/php cms system that was written on this site using a upload.php to upload files into the database and then call them with a getdata.php. I have been able to upload, update and call the several pages, but none of my php code within the pages stored in the mysql database work. Is there a way to get the code within the pages stored in the database to execute/work?
This is the file I use to call the pages:
?php
if($id) {
$conn = mysql_connect("j", "", "");
mysql_select_db("files", $conn);
$query = "select bin_data from file where id=$id";
$result = MYSQL_QUERY($query);
$data = MYSQL_RESULT($result,0,"bin_data");
$type =
echo $data;
};
?>