I was able to pull in something from an external PHP site using the following code:
ActionScript Code:
myData = new LoadVars();
myData.onLoad = function() {
myText_txt.text = this.mail;
};
myData.load("localhost/xampp/site/site_flash/text.php");
This works great if I have static variables. However from my PHP page I will have more then one of the same variable. So for example:
PHP Code:
$qry = "Select image from pics";
$result = mysql_query($qry);
while($resultset = mysql_fetch_array($result)){
echo $resultset['image'];
}
This could output 2 images or it could output 10 images. Will Actionscript just keep outputting the same variable multiple times? How can I achieve this?
Thanks in advance!