Forum Moderators: coopster
hehe, I banged my head for a couple of hours today trying to figure out why a return from a external (included) function was causing my switch statement to break all the way out of the switch and kill my while loop as well. Turns out I was closing the stinking database connection in the function call. Of course, the while loop won't throw any errors since it was indeed FALSE when trying to fetch data!
The funny part is I was convinced I had a bug on my hands and almost submitted a report. Wouldn't that have been nice! Oh well, all over now, and I even saved myself the embarrassment of submitting a BOGUS PHP bug report.