Sublime directory Surf the web anonymous Pagerank Monitor


Mysql connection class

lanlan
Sun 16 December 2007, 05:35 pm GMT +0100
How can I make the connection function independent?
I mean, I know I can use:

$user = new flexibleAccess($link);

But I'd like to take away all the info regarding mysql connection and add it in a function outside the class, so I can use it for all my website.
Is that possible?

Nikolas
Wed 26 December 2007, 10:00 pm GMT +0100
First of all excuse me for the late response, I am in army right now, so I am in lack of time :)

If you want to use the connection from the class, just use the $user->dbConn which holds the database connection.

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional