Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.
Hi,
I’ve got a table in a SQL database, which has rows with details for every page on the site, like this:
|id|title|meta_desc|meta_keywords|body|
In my template, I have got something like this:
<? $body = mysql_result($result,'',"body"); ?>
<div id="content">
<?=$body?>
</div> So far so good, but here comes the problem: if I place some php code for e.g. a contact form in the body cell (in the database), it cannot be executed (because it’s “echoed”, obviously…). How can I place the contents of the “body” cell inside div#content in a way it can execute php code?
That works. Thanks :-)
1 to 3 of 3