Im busy creating an application in Flash and I need to load variables into textBoxes using a PHP script.
My PHP script is as follows:
$photos = "select * from photos_saved where username = '$_GET[user]' ";
$get_photos_res = mysql_query($photos) or die(mysql_error());
$pic1 = mysql_result($get_photos_res,0, ‘photo1’);
$pic2 = mysql_result($get_photos_res,0, ‘photo2’);
$pic3 = mysql_result($get_photos_res,0, ‘photo3’);
print “pic_1=$pic1&pic_2=$pic2&pic_3=$pic3&”;
Now obviously the Text boxes that are inside my flash document are “pic_1”, “pic_2” and “pic_3”.
The problem Im having is that the GET doesn’t seem to work. If I change the $_GET[user] to an actual name it works. Why is this?
Is this something Im doing wrong?? I would really appreciate some help or tips? Im going mad with this…hahaha