I'm currently in the middle of working on a CMS system that builds the website straight from information saved in a MySQL database.
Here's the problem I'm having:
- Inside the CMS the user enters coding for a template
- the frontend of the site (frontend.php) calls the variable where the layout is stored ($template_header)
- The frontend also creates the variable $menu_code by pulling the menu code from the database, which was also stored via the CMS
- Inside of the template code, there has to be a break for this variable, when it is run by frontend.php it will be picked up.
This is what I've been trying:
inside frontend.php:
echo $template_header;
inside of $template_header:
<tr><td><center>'.$menu_code.'</center></td></tr>
What it should look like when frontend.php is run in the IE:
<tr><td><center><script>rest of menu coding in here</script></center></td></tr>
What it looks like when I do run it:
<tr><td><center>'.$menu_code.'</center></td></tr>
it displays it like text. It's probably a simple problem but any help would be much appreciated, on a tight deadline with this project and any advice would be greatly appreciated. Thanks