if($count!=0)
echo ("Fotos (clique para ampliar)");
?>
$cols = 4; //Número de colunas
$cmdSQL = "SELECT * FROM fotos_noticias";
$cmdSQL.=" WHERE id_noticia='".$rs['id_noticia']."'";
$cmdSQL.=" ORDER BY id_foto DESC";
$rsSQL = mysql_query($cmdSQL) or die (mysql_error());
$x = 1;
$num = mysql_num_rows($rsSQL);
echo("
$cmdSQL = "SELECT *,DATE_FORMAT(data_cadastro,'%d/%m/%Y') as data FROM noticias";
if(!isset($_SESSION['PAGE_PREVIEW']))
$cmdSQL.= " WHERE ativo='S' AND id_noticia != '".$_GET['ID']."'";
$cmdSQL.=" ORDER BY id_noticia DESC";
$cmdSQL = Select($cmdSQL);
while($rs = mysql_fetch_array($cmdSQL)){
echo $rs['data']." ".$rs['titulo']."