I have the following PHP code to generate output to the flash
//=======================================================================
$query = "SELECT currencyCode,currencyName,country,buyPrice,sellPrice
                      FROM $CURRENCIES_TABLE order by currencyCode;";

     $db_linker = db_connection();
        db_selection($db_linker);
     $result = mysql_query($query);
      $num=mysql_num_rows($result);
                  echo "&array_num=".$num;
      for($i=0; $i<mysql_num_rows($result); $i++){
       echo
"&list_label".$i."=".mysql_result($result,$i,"currencyCode").",".mysql_resul
t($result,$i,"currencyName");
     }


     db_close($db_linker);


//==========================================================================
==


also the following code in actionscript use to receive&send data.
but when I run the *.swf it cann't get the output from PHP,
so anyone can help????

//============================================================
loadVariables("link.php", this, "POST"); // get the data from php file
/*
//==================================================
iList = new Array();
myItem = new Object();
iList[0] = myItem;

for (i=0; i<array_num; i++) {
myItem = new Object();
test = this["list_label"+i]
myItem.label = test
myItem.data = i;
iList[i+1] = myItem;
}

list_currency.setDataProvider(iList);

//========================================================================




thx.

--
Sincerely your;

pei_world ( .::IT::. )






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to