Display result from database

Hi guys,

I have problem on how to display all results from the database.

In PHP, I have variables which generated according to how many data fetched from the database.
the problem is : Im dont know how to display it because I dont know how to generate dynamic textfields according to number of variables that the php sent.

for example :
2 records fetch from database.
1 records have 13 fields.
i used fetch array and resulted on 36 array’s index
I put the array into the variables called variable1,variabel2,…,and so on until variable 36. and then send it back to flash.

And now Im stuck on how to display the data.If anybody have another way or solution for my problem, please submit here…