dove chiudi il while ???
devi chiudere l'echo()