$c=0;while($fila2 = mysql_fetch_array($res2)){$array1[$c]=$fila2[0];$c++;} $c=0;while($fila3=mysql_fetch_array($res3)){$array2[$c]=$fila3[0];$c++;}$comp = array_diff($array1, $array2);