Hello
The text for den Website should come from a mysql database.
In some textfields there I need a newline and the TAG <br> changed to <br>.
Old version and ok
This is my old methode without template. It works fine. When I write a <br> in the database then on watching the website a newline is happen.
//Auslesen der Datem aus Datenbank
res=mysql_db_query("multilingual","select * from lang_".$lang."_art where id="$id"" );
for ($i=0; $i<$num;$i++)
{
$did=mysql_result($res,$i,"id");
$title=mysql_result($res,$i,"title");
$inhalt=mysql_result($res,$i,"inhalt");
$lf= $i+1;
//Öffnen der Contenttabelle und Schliessen
//echo "<tr><td>$title</td></tr><tr><td>$inhalt</td></tr>";
echo "<tr><td >$inhalt</td></tr>";
}
New Version and not ok (with template)
php file
$restext=mysql_db_query("multilingual","select * from lang_".$lang."_art where id="$id"" );
$tmpl->setdbloop('text', $restext, mysql);
$tmpl->pparse();
html file (template file)
<tmpl_loop name='text'>
<tr><td >d<tmpl_var name='inhalt'></td></tr>
</tmpl_loop>