theme call from database
Posted: Fri Oct 09, 2009 3:15 pm
Hello,
I am very new and just learning PHP. I have a question. I would like the header file to change depending on the theme the user has. I have made a field on another page where the user types in the name of the theme they want to use. I typed in "default" and it's showing in the database as being there. The original looked like this:
but I want to change it so it calls the theme name from the database.
I've tried:
but it didn't work so I also tried:
Can anyone help me with any other suggestions. I feel so dumb but this is the only way I will learn.
Thank you.
I am very new and just learning PHP. I have a question. I would like the header file to change depending on the theme the user has. I have made a field on another page where the user types in the name of the theme they want to use. I typed in "default" and it's showing in the database as being there. The original looked like this:
Code: Select all
require_once("themes/Default/header.php");I've tried:
Code: Select all
require_once("themes/" . $a1[TemplateName] . "/header.php");Code: Select all
require_once("themes/$a1[TemplateName]/header.php");Thank you.