così dovrebbe andare:
codice:
$st=mysql_query("SELECT numero FROM tabella") or die(mysql_error());
$cont=1;
while($row=mysql_fetch_assoc($st)){
	if($row['numero'] != $cont)
		$temp[]=$cont;
	$cont++;
}