ok .. allora hai sbagliato ad usare href=\" ha stampare con la concatenazione <?=".
Prova come ti ha suggerito Darkhorizont

ciao