calling classes

From: Date: Fri, 11 Nov 2005 21:16:49 +0000
Subject: calling classes
Groups: php.db 
Request: Send a blank email to php-db+get-40646@lists.php.net to get a copy of this message
I have a class which extends to include a mysql class. Within the class's functions i have multiple calls (without creating an object like '$instance = new MysqlDb()' ) to the mysql class like this: function doThis(){ $this->query("...."); $this->selectquery(); do something else here.... $this->query("...."); $this->selectquery(); } My question is whether I should beware of two instances of the mysql object getting mixed up somehow. I feel I should clear each instance after use, like I would nullify a variable with $var=""; My scripts seem to run fine, but i wonder if the above is bad practice... Malc

« previous php.db (#40646) next »