Aggiungi un or die(mysql_error()) e vediamo dov'è l'errore