if (!$_REQUEST[artikel]) {
$res = $db->query("select DATE_FORMAT(datum,'%d.%m.%Y') as datum2, datum, titel, einleitung, filename, newsid from biz_news where comehost='1' order by datum desc");
while ($row=$db->fetch_array($res)) {
$text = $row[einleitung];
$resb = $db->query("select * from biz_news_bilder where news='$row[newsid]'");
while ($rowb=$db->fetch_array($resb)) {
$text = str_replace("[IMG:".$rowb[id]."]", "
", $text);
}
?>
} ?>
} else {
$res = $db->query("select * from biz_news where filename='$_REQUEST[artikel]' limit 1");
$row = $db->fetch_array($res);
$text = $row[text];
$resb = $db->query("select * from biz_news_bilder where news='$row[newsid]'");
while ($rowb=$db->fetch_array($resb)) {
$text = str_replace("[IMG:".$rowb[id]."]", "
", $text);
}
?>
} ?>