Ok, I need to have different HTML pages stored in a MySQL database.
As a query executes then this code (Which is an entire frameset page) needs to be displayed to the browser.
The HTML executes fine and calls the relevent frames - however the PHP code is not executed as PHP.
EG...
In page index.php
<?
// Display the selected Index Page
echo $index;
?>
Then the code to be displayed (which is stored in $index) is as below - however the PHP code is not executing and can be viewed using the page source. This results in the frameset being executed correctly but none of the PHP will execute
<?php
$site = $_GET['site'];
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Adam Test Index Page</title>
</head>
<!-- frames -->
<frameset rows="120," border=0>
<frame name="HEADER" src="top.php?site=<?=$site;?>" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
<frameset cols="210,">
<frame name="MENU" src="left.php?site=<?=$site;?>" marginwidth="0" marginheight="0" scrolling="auto" frameborder="0" noresize>
<frame name="CONTENT" src="content.php?site=<?=$site;?>" marginwidth="0" marginheight="0" scrolling="auto" frameborder="0" noresize>
</frameset>
</frameset>
</html>