Código PHP:
<?php
$dbh = EstablecerConexion();
$SQL=Sqld4w2as1();
$SQL .= " and nota.CodSeccin = ".$CodSeccin;
$SQL .= " and DestacSeccin=0 and PosicnColumnSeccin=0 and DestacFija=0";
$SQL .=" group by CodNotic,TitNotic,ResumnNotic,FecNotic";
$SQL .= " order by FecNotic desc Limit 10";
$SQL=SQLSeguro($SQL);
$Datos = mysql_query($SQL);
if ($Datos) {
$num=mysql_num_rows($Datos);
$i=0;
while ($i < $num) {
include("datosnoticia.php");
?>
<div class="cn_content"> <!-- aqui quisiera que solo en primer resultado aparezca asi <div class="cn_content" style="top:5px;"> -->
<?php if ($NumFotos>0){ ?>
<img src="<?php echo $RutaFotos."/1.jpg" ?>" alt=""/>
<?php }?>
<h4><?php echo $TitNotic ?></h4>
<p ><?php echo $ResumnNotic ?></p><br /><br />
<a href="detnotic.php?CodNotic=<?php echo $CodNotic ?>" class="cn_more">Continuar...</a>
</div>
<?php
++$i;
}
}
mysql_close();
?>