Hi everyone! I can't figure out why this doesn't work. The call to the CONNECT function works and it connects with no problem, and it does save the Resource ID in $this->DBLink[]...however, when CHOOSEDB is called, the Resource ID just saved is gone. $this->DBLink is just empty, and I can't figure out why...
Can anyone offer insight on this one? class MySQL { var $DBLink = array(); function CONNECT ( $MyVars , $MyContents ) { $host = ( $MyVars[PORT] ) ? $MyVars[HOST] . ":" . $MyVars[PORT] : $MyVars[HOST]; $this->DBLink[$MyVars[NAME]] = mysql_connect( $MyVars[HOST] , $MyVars[USERNAME] , $MyVars[PASSWORD] ); } function CHOOSEDB ( $MyVars , $MyContents ) { mysql_select_db( $MyVars[DATABASE] , $this->DBLink[$MyVars[LINK]] ); } } Thanks! Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php