prova ad aggiungere:

$result = mysql_query($query,$link) or die(mysql_error()

cosi vediamo se è il db... (intanto ) posta l'eventuale errore!!!