Forum Moderators: open

Message Too Old, No Replies

Variables from PHP are not parsing

         

coopersita

5:46 pm on Mar 13, 2006 (gmt 0)

10+ Year Member



Hi,

I'm making a small poll system using mySQL, PHP and Flash.

My problem is that Flash is not rendering the vars as it should.

Here's the string I create in php:
$myVars ="&q=$row[4]&&y=".$row[0]."&&n=".$row[1]."&";
print ($myVars);

When I test the php in the browser I get this:
&q=Do you like answering polls?&&y=0&&n=0&&m=0&

But when I test in flash:
trace(myLV.q);

I get:
$row[4] (instead of Do you like answering polls?)

What am I doing wrong?

Here's my AC:

myLV = new LoadVars();
myLV.onLoad = function(success) {
if (success) {
trace(myLV.q);
Mytext.autoSize = "right";
Mytext.htmlText = myLV.q;
}
};
myLV.load('pollread.php');
stop();