prova a farti dire l'errore:

Codice PHP:
$query_a mysql_query("testoquery",$link) or die (mysql_error());