Originariamente inviato da thenax
oh mamma! e in pratica il codice come sarebbe??
Ora vedi te le query

Codice PHP:
$sql "SELECT  idutente FROM tab_utenti";
$user mysql_query($sql,$b);
$sql "SELECT * FROM tab_evento WHERE evento = " $id_evento;
$ris mysql_query($sql,$b);

while (
$fetch mysql_fetch_array($ris)) {

$user_evento[] = $fetch['idutente'];

}

for (
$i=0$i<count($user); $i++) {
  if (! 
in_array($user[$i],$user_evento) {
     
$user_non_evento[] = $user[$i]
  }
}
echo 
"<pre>";
print_r($user_non_evento);