From: John <jo...@d-...> - 2003-02-19 15:03:23
|
Hiya Kelvin.. Write a service method that returns a mySQL recordset...eg.. mysql_select_db($db)or die(mysql_error()); $res = mysql_query($sql); return $res; And I think that should do it if I remember rightly!! (sorry I have tonnes of work at the mo to have the time to sort you out a proper example) You shouldn't have to touch anything else, only your service. The gateway knows its a mysql result, parses it and adds the header that amf needs to identify it as a record set and then pumps it out to Flash... Give it a try and let us know how it goes.. Jolly.. ----- Original Message ----- From: "Kelvin Luck" <ke...@as...> To: <amf...@li...> Sent: Wednesday, February 19, 2003 3:25 PM Subject: [amfphp] sending recordsets to flash > Hi, > I've been playing around with amfphp for an hour or two now and have got it > returning strings, arrays and objects to flash happily enough. The next > thing I wanted to do was to return a recordset because I understand you can > "glue" this to a FUI Component to populate it (I'm new to all kinds of > remoting - not just the PHP one so correct me if I'm wrong). > I found a file ("/flashservces/sql/mysqlRecordSet.php") which I guess helps > you to do this but I couldn't figure out how to use it... > Thanks for any hints, > Kelvin. > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.454 / Virus Database: 253 - Release Date: 10/02/2003 > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > amfphp-general mailing list > amf...@li... > https://lists.sourceforge.net/lists/listinfo/amfphp-general |