# Help with several newbie questions

**URL:** <https://forum.kirupa.com/t/help-with-several-newbie-questions/165592>\
**Category:** flash\
**Created:** [October 12, 2005, 11:43am UTC](https://forum.kirupa.com/t/help-with-several-newbie-questions/165592 "2005-10-12T11:43:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tomacco](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@Tomacco](https://forum.kirupa.com/u/Tomacco)\
**Post date:** [October 12, 2005, 11:43am UTC](https://forum.kirupa.com/t/help-with-several-newbie-questions/165592/1 "2005-10-12T11:43:36Z")

</div>

Hi 🙂

I have two questions:

1. Suppose I have a php file that have just executed

$query = “some mysql query”;  
$result = mysql\_query($query);  
$sarray = mysql\_fetch\_array($result, MYSQL\_NUM);

Where the array should be an array of integers representing all the rows from the query (1 column, 50 rows).

My question is:

how do i return this array into my flash file?

Will ‘print “nameofarrayinflash=sarray[sarray]”;’ work? I’m not quite sure how that function works when it comes to arrays, as I only know how to use it when it comes to single variables.

1. I’m trying to draw a line/bar graph in my movie (which uses that array). Some people pointed me to FusionCharts lite, and I have been looking into that. However, it seems as though FC requires a php/html to start the process of loading a pre-specified .swf.

So with what I’m working on, I already have my flash file, I’m wondering if it’s possible for me to use FC graph in my file; As in load a .php file inside and have it execute the command to load the FC’s .swf charts.

I hope that all makes sense, help would be greatly appreciated as I’m on an urgent deadline ☹

Thanks in advance.
