Brasil
Avenida Nilo Peçanha, nº 50,
Sala 1608, Ed. Rodolpho De Paoli, Centro, Rio de Janeiro – RJ
partials(__DIR__, 'header');
$id=intval($_GET['q']);
$ultimas = $db->query("select *, date_format(data,'%d de %M de %Y') as dataf from noticias where img<>''order by data desc limit 6") or die($db->error);
if( $noticia = $db->query("select *, date_format(data,'%d de %M de %Y') as dataf from noticias where id=$id")->fetch_assoc() ) {
} else {
header("Location:".SITE."noticias");
exit();
}
$ntitulo = $noticia['titulo'];
$ndata = $noticia['dataf'];
$ntexto = nl2br($noticia['conteudo']);
$nlink = 'noticia/'. $noticia['id'];
//print_r($_GET);
?>
Últimas Notícias
Notice: Undefined variable: ntitulo in /var/www/vhosts/pedropamplona.adv.br/httpdocs/noticia.php on line 92
Notice: Undefined variable: ntexto in /var/www/vhosts/pedropamplona.adv.br/httpdocs/noticia.php on line 98
Últimas Notícias
Notice: Undefined variable: ultimas in /var/www/vhosts/pedropamplona.adv.br/httpdocs/noticia.php on line 119
Warning: Invalid argument supplied for foreach() in /var/www/vhosts/pedropamplona.adv.br/httpdocs/noticia.php on line 119