אתה צריך לשלוף את התוכן כדי שהוא יוצג:
PHP קוד:
<?Php
$page = intval($_GET['p']);
$query = mysql_query("SELECT * FROM `tbl` WHERE id = '$page'") or die(mysql_error());
$row = mysql_fetch_array($query);
$title = htmlspecialchars($row['title']);
$content = htmlspecialchars($row['content']);
echo <<<html
<html dir="rtl">
<head>
<title>{$title}</title>
</head>
<body>
<div id="content">
{$content}
</div>
</body>
</html>
html;
?>
משהו כזה..