How are you determining which record of data you want to display at any location? Unless you set the array indexes to something that you can use to reference an individual record in the array, you are limited to looping over the records, directly referencing the first/last one, or picking random entries.