Hi,
I am wondering if anybody may know the best way around a problem i am having.
I am using a php template class to read values from my db and populate different variables from the array in an html template.
ie
$t->set_var(array(
"wwwroot" => $CFG->wwwroot,
"category" => ov($qid->f("name")),
));
and within the html template there is the variable:
{category}
This all works fine, however recently we have added another db field that contains large amounts of text. We want to format that text within the db
ie
ov($qid->f("name")) = Line1<br>
Line2<br>
Line3<br>
At the moment the variable for {category} is printing out
Line1<br>Line2<br>Line3<br>
Instead of
Line1
Line2
Line3
Does anyone know a good way around this???