I am a bloody idiot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux