Disculpen me tarde pero lo solucione asi
Código PHP:
Ver original<?
$queryF = "SELECT DISTINCT Rrappyd AS RR FROM partidas WHERE CAST(MID(Rrappyd, 2, LENGTH(Rrappyd)-1) AS UNSIGNED) BETWEEN $iniciorr AND $finrr ORDER BY Rrappyd";
do{
$idarray += 0;
$idarray.'<br>';
$RR[$idarray] = $row["RR"];
}
for($i=$iniciorr; $i<=$finrr; $i++):
#contenido y analisis de remiciones.
if($RR[$i] == NULL){
echo $i;
$norr++;
}else{
echo '<strong><a href="remisionrappyd.php?Rrappyd='.$RR[$i].'" target="Rrappyd">'.$RR[$i].'</strong>';
$sirr++;
}
############################
if($td<=$nc) echo '</td>';
if($td==$nc){ echo '</tr>'; $td=0; $tr=1; }
endfor; if($td>1 and $tr=0) echo '</tr>';
?>