Problem with arrays

I am trying to get the id from an array and pass it to a function.

t={}  

local function GetInfo(event)
	print(t[].id)????? How can I get the id here??
end

local sql = “SELECT * FROM mymovies”
i=0

for row in db:nrows(sql) do
local text = row.tekst…" "…row.dato
i=i+1
t[i] = display.newText(text, 250, 60 * row.id, native.systemFont, 28)
t[i].id=row.id

 t[i]:addEventListener("touch", GetInfo)
 t[i]:setFillColor(155,1,1)

end

event.target.id
2 Likes

Thank you!