hi
why does the function overwrite $db? in php4 the parameter is copied and not passed by reference.
function renderNews($db, $tbl, $path, $freetag, $markUp) {
$db->q("select txt from ".$tbl['cat']." where ".substr($query,0,-4));
while($db->nr())
$cat .= $db->r['txt'].' / ';
$tmp .= substr($cat,0,-2).'</td>';
return $tmp;
}
$db->q($query);
while($db->nr()) {
echo renderNews($db, $tbl, $path, $freetag, $markUp);
$i++;
}