hola amigos, tengo un problema con un slider que estoy haciendo, el problema es el siguiente:
Código PHP:
<div id="featured" >
<ul class="ui-tabs-nav">
<?php
$SQL=SqlNoticia();
$SQL .=" and DestacHome=1";
$SQL .=" group by CodNotic,TitNotic,ResumnNotic,FecNotic order by FecNotic Desc Limit 5";
$SQL=SQLSeguro($SQL);
$Datos = mysql_query($SQL);
if ($Datos) {
$num=mysql_num_rows($Datos);
$i=0;
while ($i < $num) {
include("datosnoticia.php");
$Altura=70;//$Altura=140; OJO PARA subir y bajar las flechas
?>
<li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-1"><a href="#fragment-1"><img src="<?php echo $RutaFotos?>/1.jpg" alt="" width="80" height="50" /><span><?php echo $TitNotic?></span></a></li>
<?php
++$i;
} //do while
}//if Datos
?>
</ul>
<?php
$SQL=SqlNoticia();
$SQL .=" and DestacHome=1";
$SQL .=" group by CodNotic,TitNotic,ResumnNotic,FecNotic order by FecNotic Desc Limit 5";
$SQL=SQLSeguro($SQL);
$Datos = mysql_query($SQL);
if ($Datos) {
$num=mysql_num_rows($Datos);
$i=0;
while ($i < $num) {
include("datosnoticia.php");
$Altura=70;
?>
<!-- First Content -->
<div id="fragment-1" class="ui-tabs-panel" style="">
<img src="<?php echo $RutaFotos?>/1.jpg" alt="" width="400" height="250" />
<div class="info" >
<h2><a target="_parent" title="<?php echo $TitNotic?>" href="detnotic.php?CodNotic=<?php echo $CodNotic ?>"><?php echo $TitNotic?></a></h2>
<p><?php echo $ResumnNotic?></p>
</div>
</div>
<?php
++$i;
} //do while
}//if Datos
?>
</div>
mi problema ocurre en esta en el id como puedo hacer para que a medida que aumenten las consultas me vaya cambiando el n° del id.
<li class="ui-tabs-nav-item ui-tabs-selected"
id="nav-fragment-1">
<div
id="fragment-1" class="ui-tabs-panel" style="">
desde ya gracias por sus respuestas.