Null,1,2,3,4...
1,2,3,4,Null
¿Es posible?
Código PHP:
<?php //Datos para la tabla 1
$resultados = mysql_query("SELECT DISTINCT dos, COUNT(*) AS num FROM p608 WHERE campus='Melilla' GROUP BY dos ORDER BY CAST(dos AS SIGNED);
");
while($fila=mysql_fetch_array($resultados)) {
$num=($fila["num"]*100/$row["total"]);
$acumulado+=$num;
echo '<tr>
<td class="text_center">'.$fila["dos"].'</td>
<td class="text_center">'.$fila["num"].'</td>
<td class="text_center">'.number_format($num,2,".",",").'</td>
<td class="text_center">'.number_format($num,2,".",",").'</td>
<td class="text_center">'.number_format($acumulado,2,".",",").'</td>
</tr>';
}
?>