# Help Required

**URL:** <https://forum.kirupa.com/t/help-required/88760>\
**Category:** programming\
**Created:** [May 2, 2005, 2:11pm UTC](https://forum.kirupa.com/t/help-required/88760 "2005-05-02T14:11:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shan9211](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@shan9211](https://forum.kirupa.com/u/shan9211)\
**Post date:** [May 2, 2005, 2:11pm UTC](https://forum.kirupa.com/t/help-required/88760/1 "2005-05-02T14:11:16Z")

</div>

hi,

I am working on a Flash / PHP / MySQL project and I need some help. I am passing a variable from Flash to PHP and the output which I want from the database is in multiple lines. So as far as I feel it requires an array. Now I am confused that where should I use an array, in the Flash script or in the PHP script. The technique which comes in my mind is shown below:

1. Make a variable in flash and it should read:

```auto
Array MyArray = new Array();

```

then

```auto
loadVariablesNum("[http://office/test7.php](http://office/test7.php)", 0, "POST");

```

then just to check do a trace, write this after the loadVariablesNum line

```auto
 
for(i=0; i<=myArray.length; i++){
	 trace(myArray*);
}

```

```auto
 
for(i=0; i<=myArray.length; i++){
	 dynaTextBox 

```

+= myArray\* + " ";  
}

```auto
 
 
then similarly you can populate the dynamic textfield using for loop
 

```

for(i=0; i\<=myArray.length; i++){  
dynaTextBox += myArray\* + " ";  
}

```auto
 
 
 
If this technique is correct then do tell me about, else please help me in this matter. In the above mentioned technique I am confused whether I have to use an array in the PHP script also or not.
 
Regards,
Xeeschan
```
