I am a bloody idiot

From: Date: Tue, 04 Dec 2007 12:22:25 +0000
Subject: I am a bloody idiot
References: 1 2 3 4 5 6 7  Groups: php.db 
Request: Send a blank email to php-db+get-44388@lists.php.net to get a copy of this message
Dee Ayy wrote:
no worries.... I give up. It is really weird I know.... Hope some day I will get enlighted. In one file, any method within a class is happy with the global $db...on a different (same file !!!) class no method is happy with accessing $db via global...
So you confirmed that you are using "global" instead of what you posted to the list as "globals"?
So yes...... after so many tests, copying / pasting comenting / cleaning...somewhere buried there was a $db->close()... which afterwards was rendering the db connection useless.......thus following classes were not able to use the object even though it was there. my apologies. JCG

« previous php.db (#44388) next »