Mysqlphp -- i hate what im doing!

hi guys, this question is an approach question. I feel like im being redundant and i really dont like the way im going about this.

I have a mysql database and im creating a query to get &blah1= and &blah2= and so on.

so now i have about 50 blah variables and in flash, im making a for loop based on the rows and im populating an array filled with these blah values. My php script is running 3 queries – and i get results from 3 different tables and im running about ten string one1=jkjk one2=kjjkjk … three5=djkkdfk

this is what im talkng about it. The way im concatenating these strings, is the same approach after i goto into flash to populate the arrays.

is there a batter way??