Connection

typedef php.db.ConnectionAvailable in phpTo access a database you have to create a connection:
//make connection...
var connection:Connection = php.db.Mysql.connect( params : { user : String, socket : String, port : Int, pass : String, host : String, database : String } );

//do stuff with connection...
var rs:ResultSet = connection.request( sql : String );

//close connection...
connection.close();

See also: Accessing to MySQL Database.
= Connection
version #11351, modified 2011-09-25 16:04:44 by api
0 comment