Notícias
query("SELECT * FROM noticias WHERE publicado='Sim' ORDER BY id DESC"); foreach($noticias as $noticia){ $imagens=$bd->query("SELECT * FROM imagens WHERE img_id_elemento='".$noticia['id']."' AND img_tipo='noticias';"); ?>
  

query("SELECT * FROM noticias WHERE id=".$_GET['noticia'].";"); foreach($noticias as $noticia){ $imagens=$bd->query("SELECT * FROM imagens WHERE img_id_elemento='".$noticia['id']."' AND img_tipo='noticias';"); ?>

'; } ?> '; $tr=1; } } } ?>

[ voltar ]
query("SELECT * FROM noticias WHERE id!=".$_GET['noticia']." ORDER BY data LIMIT 0,3;"); if($noticias) echo 'Outras notícias

'; foreach($noticias as $noticia){ $imagens=$bd->query("SELECT * FROM imagens WHERE img_id_elemento='".$noticia['id']."' AND img_tipo='noticias';");*/ ?>