For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > December 2007 > Re: [PHP-DB] I am a bloody idiot









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] I am a bloody idiot
Chris

2007-12-04, 7:00 pm

julian wrote:
> Dee Ayy wrote:
>
>
> 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.


Heh everyone has done that at some time I'm sure :) My next suggestion
was going to be to make sure you're not overwriting or using the $db
variable somewhere in your code (which then affects the global $db
variable)... Another pretty common mistake.

--
Postgresql & php tutorials
http://www.designmagick.com/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com