I've triple checked this and something is definately wrong with this... This is my entire php code for anything retaining towards the templates.
PHP Code:
$result = mysql_query('SELECT * FROM templates');
while ($row = mysql_fetch_assoc($result))
{
$templates[$row['name']] = $row['template'];
}
// echo $templates['header'];
$compiled_header_template = str_replace('\\\\$', '\\$', addslashes($templates['header']));
eval('$header = "' . $compiled_header_template . '";');
echo $header;
If I just echo the $header template without doing any of the str_replace functions and so forth.... The css will work, the set table widths, and so forth will work, BUT any variables or arrays that I output wont. I can use your way and get most of the variables and arrays to ouput but then it will not accept the CSS properly nor the set table widths, heights, and so forth. Any idea on what could possibly be the problem?