Well, the problem is that the text which is supposed to be in the middle appears at the top, for example.
TExt
header
middle- where text should be
footer
NNow, the gettemplate function is as follows:
<?php
//start gettemplate
function gettemplate($location) {
global $module, $name;
$query="SELECT code FROM site_templates WHERE name=\"$location\"";
if (mysql_errno()) print mysql_error();
$result = mysql_query($query);
$template = mysql_fetch_array($result);
echo $template["code"];
}
?>
And I put the code as follows from where I want it to be:
gettemplate("header");
gettemplate("middle");
gettemplate("footer");
I could post a screenshot of what I get, but it is pretty straight forward.
Thanks!🙂