This will never work. You cannot return a query result identifier to a flash movie through LoadVars. You need to iterate through the recordset. and create something that flash can read. Or use remoting. Or even use xml or csv. Search the forums for recordset
Um... None of what I have replied were applied to your PHP file... How come??? You already know I am really bad at PHP, uh???
The bottom line is that you should really make that PHP script working with no error within the web browser and when that's done, that's time to use that data within the Flash and you do need to remember what I said up there in terms of getting rid of unnecessary output and having the variables in varName=value&varName=value pairs...
I just browsed through this thread, and I think you can get this working by adding this line before your echo line, but be warned I did not test it (my db is messy right now).
Ya sorry Cyan....I have just been getting so much mixed responces that I don't know if I'm coming or going. I will try when I get home from work to do as you said and I will add the line that erry suggested also. Then (when it's still not working ) I will re-post the .fla and PHP for you guys to look at. Thanks for all the help.....so I geuss the whole 'Flash remoting' thing is unnecessary?
Flash Remoting will be another way of doing it... It will be extremely useful if you are passing really big data and if you have to create an array with that data in Flash... Flash tends to be real slow when that happens, but if you use Flash Remoting, you can just send PHP array to Flash array... Simple, right??? That's one great reason to use Flash Remoting...