My php code loops through records in a database and inserts them into an array like this:
$name[$total+1] = $row[1];
$program[$total+1] = $row[3];
$testimonial[$total+1] = $row[4];
print("profile_name[$total+1]=$name[$total+1]&program[$total+1]=$program[$total+1]&testimonial[$total+1]=$testimonial[$total+1]&total=$total");
in Flash, I cannot access any particular array with LoadVars actionscript:
var myVars = new LoadVars();
myVars.onLoad = function(){
_global.counter = 1;
_global.profile_name = myVars.profile_name[counter];
_global.program = myVars.program[counter];
_global.testimonial = myVars.testimonial[counter];
}
Basically, this function will be called everytime a button is clicked to "load new data". What am I doing wrong to access my information?
I had the LoadVars working if I do not use multiple data...
Thank you in advance.