[osflash] [REMOTING] When to return the db resource id?
Julian Sander
list at abstractfactory.de
Fri Apr 28 01:28:24 EDT 2006
Hi Marcelo,
what I do is put a getDB method on the server which either creates a
new DB connection (I use ADODB) or passes the current DB connection
around to the different methods. As far as I know you cannot pass a
DB connection from AMFPHP to Flash and back as the php remoting class
is instantiated on every new call.
cheers, Julian
On 27.04.2006, at 23:49, Marcelo de Moraes Serpa wrote:
> This maybe a silly question, but sometimes I find myself struggling
> on how method I will use - for example, when I need to attach data
> from a different table I can´t return just the database resource
> id, I need to return the data fetched in an array, however, I find
> that most remoting projects use the RecordSet class to have more
> control on the client side over the server side fetching of data...
> It may depend on what is the nature of data query, but I really
> would love to hear from more experienced remoting/flash
> developers. I´m using AMFPHP and MySQL5.
>
> Thanks,
>
> - Marcelo.
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
More information about the osflash
mailing list