Alright a day ago I posted about putting templates on my database... Now that I have them, a person showed me the easiest way to call upon these 4 templates as below.
$query = mysql_query(Select * From templates);
while ($t = mysql_fetch_array($query)) {
$templates[$t['header']] = $t['header'];
$templates[$t['index']] = $t['index'];
$templates[$t['modcolumn']] = $t['modcolumn'];
$templates[$t['footer']] = $t['footer'];
}
mysql_free_result($query);
So all four are text stored files in the db... My question is what would be the easiest way to call upon those and actually ouput them correctly?