PHP:
<?php
include("inc/config.php");
$smarty = new Smarty;
$conection = mysql_connect($host,$usr,$pw);
mysql_select_db($db);
$query = "SELECT text, title, links FROM gsl_news ORDER BY date DESC";
$newsqry = mysql_query($query) OR die (mysql_error());
$news = array();
while($row = mysql_fetch_assoc($newsqry))
{
$news[] = $row;
}
$smarty->assign('newsbeitraege', $news);
Wenn ich es so mache, kommt eine leere Seite.