aggiungi
mysql_query( $query, $link ) or die (mysql_error());

per vedere se ci sono errori nella query