# Need a little help using LoadVars

**URL:** <https://forum.kirupa.com/t/need-a-little-help-using-loadvars/218247>\
**Category:** Uncategorized\
**Created:** [March 6, 2007, 4:18am UTC](https://forum.kirupa.com/t/need-a-little-help-using-loadvars/218247 "2007-03-06T04:18:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![threnody](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@threnody](https://forum.kirupa.com/u/threnody)\
**Post date:** [March 6, 2007, 4:18am UTC](https://forum.kirupa.com/t/need-a-little-help-using-loadvars/218247/1 "2007-03-06T04:18:42Z")

</div>

ok so, i have a php file which basically spits out all the rows of a mySQL table, in such a way…

&entry1name=whatever&;  
&entry1age=whatever&;  
&entry2name=whatever&;  
&entry2age=whatever&;  
…  
&entryNname=whatever&;  
&entryNage=whatever&;

where n is the size of the table.

ok, so in actionscript, i load those variables in just fine…and lets say its in myVars.

i can do trace(myVars.entry1name) just fine, but the thing is, i want to stick it in a loop, so it could trace out all of the entry NAMES (not the ages). but how do i do that? i tried doing…

trace(myVars[“entry” + i + “name”] where “i” is the increment in my for loop… but apparently you cant do this…

so how would i go about this?
