Posted by milahu on 12/06/42 11:45
> Are you suggesting INSERTing entire tbl_Products code directly into the
> 'tbl_siteLayout.pageMiddleContent' field?
No, just store sth. like
-----
<ul>
<?php
// connect to mysql, query and parse result
?>
</ul>
-----
in the database and instead of printing the contents pass them to
eval():
-----
<?php
// fetch $content from mysql
eval($content);
?>
-----
Since you don't have access to variables as you would have with
include(), you have to connect to mySQL in the eval'ed code separately.
Cheers, milahu
[Back to original message]
|