I Have a unique id generated for each record that I store into the database I want to pass that id to PHP and run a select statement against that and get a value back from the database and pass it back to flash, what is the best possible way to do it?
PS: I am using AS3
You have to call the php script which makes the sql connection and gets the value.
Here: http://livedocs.adobe.com/flex/2/langref/flash/net/URLLoader.html#includeExamplesSummary
The important part is here:
And here:
In your php script you just have a print at the end:
You will be able to read $value out of loader.data.