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?
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?