Ok,
I asked this stuff two times before, no one seemed to understand me... I'll try again.
Database field contains the following stuff:
HEADLINE
TEXT TEXT
<?php
echo '<a href="printcommunity.php?pageid=' . urlencode($_GET['pageid']) . '" class="bodynav">Printer Friendly Version</a>';
?>
I use this code to output that field:
<?php
if (isset($pageid) && is_numeric($pageid))
{
$display_community_page = mysql_query("SELECT html FROM community WHERE pageid=$pageid")
or die ("MySQL Error");
if (mysql_num_rows($display_community_page) > 0)
{
while ($row = mysql_fetch_array($display_community_page))
{
$community_page = $row["html"];
echo ("<!-- startprint -->$community_page<!-- stopprint -->");
}
}
}
else
{
echo("<P CLASS=\"bodytext\" ALIGN=\"CENTER\">OOX Error: \"The requested page does not exist.\"<BR>
Please <A HREF=\"javascript:history.go(-1);\" CLASS=\"bodynav\">click here</A>
to go back.</P>");
}
?>
What it outputs is only this:
HEADLINE
TEXT TEXT
It does not output the PHP code in the database... why?