Non sono molto esperto ma non ci vorrebbe il while per scorrere i risultati???