I have two questions:
- 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.
- 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.