Hi all, thanks for taking the time, much appreciated.
I want to be able to retrieve several variables from my MySQL database.
Currently my flash sends a request to .php file which then echos all of the variables as a single string.
Flash picks up the string using
var myPHPData:String;
loader.addEventListener(Event.COMPLETE, onConnection);
function onConnection(evt:Event)
{
myPHPData = evt.target.data.writing;
}
and I break up the string to get my variables. Cumbersome and difficult to manage.
I can happily post multiple variables To my .php file. However it/flash seems to append multiple echo statements together and that is when it breaks down.
is there another way?
is there a better way?
I have thought to do several post statements to the PHP and have each one trigger a different echo statement.
I am confused by what I am reading out there and would really appreciate any advice.
thanks!