include('conf.php');
if ($_GET['ContentID']) $ContentID=DbPreveriId("celada",$_GET['ContentID']);
if (!$_GET['ContentID']) {
$ContentID=DbMQFA("select ID from celada where Objava='1' order by datum desc");
Preusmeritev("?ContentID=".$ContentID);
}
$Content=DbMQFA("select * from celada where ID='".$ContentID."'");
?>
echo $Content['Vsebina'];?>
$Sql="select * from slike where rubrika='celada' and artikelid='".$Content['ID']."' and objava='1'";
$Fotografij=DbNR($Sql);
if ($Fotografij>0) { ?>
Fotografije
$SlikaSql=DbQuery($Sql);
while ($Slika=DbFA($SlikaSql)) {
$i++;?>
$ContentSql=DbQuery("select * from celada where objava='1' and ID<>'".$Content['ID']."'order by datum desc");
while ($Content=DbFA($ContentSql)) {?>
echo IzpisDatum($Content['Datum']);?> echo $Content['Naslov'];?>
echo IzpisiDel($Content['Vsebina']);?>