View Single Post
Old 07-14-2008, 03:32 PM   #14 (permalink)
CMellor
The Acquainted
Upcoming Programmer 
 
CMellor's Avatar
 
Join Date: Sep 2007
Location: Leeds, UK
Posts: 141
Thanks: 6
CMellor is on a distinguished road
Default

Sorry for the double post!

Is it good coding to put the MySQL connection inside the __construct function?

Also I tried doing:

PHP Code:
public function __destruct() {
    
mysqli_close();

But I got errors :\
__________________
Not quite a n00b...
CMellor is offline  
Reply With Quote