I want to save a dbhandle in an object. My first thought was:
Code: Select all
$this->dbh = @mysql_connect($host, $user, $pw) or print mysql_error();Code: Select all
mysql_close($this->dbh)I don't get it?
var_dump() shows that the var dbh is a resource ???
Thanx for your help