loading php vars in flash
Posted: Tue Jul 01, 2003 6:47 pm
hi there good people,
i'm trying to find a way to get flash and php&mySql working together and more or less figured out most of it, except when it comes to send the vars from php to flash, and it's driving me insane.....
<?
.......
$row = mysql_fetch_array($stmt);
$strn = "&n&name=".$row['name']."&surname=".$row['surname']."&";
echo $strn;
?>
and what happens is that flash for the &name parameter outputs - $row['name'] - instead of the of the value contained in that array position.
i've checked and double checked php output and it's correct, and even tried hard-code it, as in:
<?
echo "&n&name=wilson&surname=edgar&";
?>
and this works just fine... the output in flash is as it's supposed to be.
does anyone knows why??? and how can i solve?
pointers are more than welcomed.
thanks in advance for your time
i'm trying to find a way to get flash and php&mySql working together and more or less figured out most of it, except when it comes to send the vars from php to flash, and it's driving me insane.....
<?
.......
$row = mysql_fetch_array($stmt);
$strn = "&n&name=".$row['name']."&surname=".$row['surname']."&";
echo $strn;
?>
and what happens is that flash for the &name parameter outputs - $row['name'] - instead of the of the value contained in that array position.
i've checked and double checked php output and it's correct, and even tried hard-code it, as in:
<?
echo "&n&name=wilson&surname=edgar&";
?>
and this works just fine... the output in flash is as it's supposed to be.
does anyone knows why??? and how can i solve?
pointers are more than welcomed.
thanks in advance for your time