Answered
Problem passing variable from PHP to Flash
I'm trying to pass a single variable from PHP to Flash.
However, I can't quite get it to work.
In a PHP file named data.php, I'm using:
$query = SELECT SUM(Debt) As Total FROM debtclock";
$result = mysql_query($query);
$debt = mysql_result($result, "Total");
print "debttotal=$debt";
In Flash 8 Actionscript, I'm using:
loadVariables("data.php","0");
As I understand it, this should make the variable debttotal available in Flash.
Can anyone tell me where I'm going wrong?
In a PHP file named data.php, I'm using:
$query = SELECT SUM(Debt) As Total FROM debtclock";
$result = mysql_query($query);
$debt = mysql_result($result, "Total");
print "debttotal=$debt";
In Flash 8 Actionscript, I'm using:
loadVariables("data.php","0");
As I understand it, this should make the variable debttotal available in Flash.
Can anyone tell me where I'm going wrong?
