OPS! Scusate non avevo visto che la variabile $sql comprendeva anche mysql_query()...

Comunque si, aggiungi un or die(mysql_error())...