[swx] SWX with mysql Class to manage a DB

Nederflash (Folkert Hielema) info at nederflash.nl
Sun Dec 2 05:51:46 PST 2007


When i use mysql in a SWX project i check for the $connection in de 
constructor method. If it's null create me a new connection and select 
the db if the connection was successfully.

 From there every service method you call from flash can use the db.

Hope that helps,

Folkert
bagias at tiscali.it wrote:
> Hi to all mailing list, sorry for my bad english, i'm an italian 
> flashers! and it's my first post.
> I have a problem with php class (in service), i use this to manage mysql 
> DB. With Browser service all single function work very nice (for example 
> OpenDBconnection).
> 
> There is only a problem, when i call service from Flash or Browser 
> service, my service work, for example to help to understand my problem:
> 
> I call the OpenDBconnection (send variables ok ) and DB connection is 
> true. when i call the service function QUERYtoARRAY (to manage my data), 
> I lost my DBConnection and when i call the service IsConnected it's 
> return FALSE.
> 
> I don't understand this, pls help me. I need to manage my DB from a 
> MovieClip, in this sequence:
> 
> 1. OpenDBconnection
> 2. If is connected = TRUE
> 3. Execute my QUERYtoARRAY
> 
> 
> Thank you for your help.
> 
> 
> 
> _______________________________________________
> swx mailing list
> swx at osflash.org
> http://osflash.org/mailman/listinfo/swx_osflash.org
> 
> 




More information about the swx mailing list