while adding a templating system to cubecart I have ran into a problem.
This function is inlcuded in the site header.php:
// countries drop down list
function countries($name,$selected_country,$prefix)
{
$select = mysql_query ("select country from ".$prefix."store_countries");
$content .="<select name=$name>";
while ($row = mysql_fetch_array($select))
{
$country = $row["country"];
$content .="<option value=\"$country\" ";
if($country==$selected_country){$content .="selected";}
$content .=">$country</option>";
}
$content .="</select>";
}
The templating system will output $content to the screen. For some unkown reason it isnt outputing the drop down list on my customer registration page:
countries("country",$site_country,$prefix);
$content .="<font color=\"#990000\"> *</font>";
when I change the function so that it uses echo to output rather than the templates systems $content it outputs the dropdown list as it should so I know there is no problem with the function.
How can I get it to output using $content?😕