I am using amfphp and using AS2 class for remote calls.
I have categories and fetch it through loop and at same time I want t fetch
subcategory in another loop inside
the loop based on some id
The function doen't returns the RecordSet.
is there anyway to solve it.
returning doesn't looks working. and I'm just using _global variable get any
mysql_query.
Please any one help me.
tonyhigham - 28 Feb 2007 20:37 GMT
I ran into this same problem with AMFPHP, but it's not too hard to fix. Change
the argument for your result function to data, like so:
function gotResults(data):Void etc etc
then, you can get at the mysql results like this:
data.result.mRecordsAvailable //total number of records returned
data.result.items //AS array containing your results
data.result.items[0].Name //for example, this would give you the value of the
field 'Name' for the first returned result
Hope that helps. Let me know if you ahve any more questions.