quoto!Originariamente inviato da mircov
Io credo che al posto di "<" dovresti metter ">" nell'ultimo if anche se non sono molto sicuro.
io farei
Codice PHP:
$query = "SELECT nome_utente, FROM $utenti_tablename WHERE
nome_utente = '$nome_utente'";
$result = mysql_query($query);
if(!$result || mysql_num_rows($result) != 1){
$errori[0] ="Il nome utente è in uso";
}