Strange behavior of function die()
Posted: Thu Apr 01, 2010 12:54 pm
I'm developing a PHP application that use MySQL and I wrote a class that contains the methods to access, write and read in the db.
In these methods I use the function die() if something went wrong but I cannot understand why I cannot see the string that I've gave to the function, I only see a white screen.
A more strange fact is that if I don't declare the class and I use the singles functions, the string in die is correctly visualized, I really cannot understand.
In these methods I use the function die() if something went wrong but I cannot understand why I cannot see the string that I've gave to the function, I only see a white screen.
A more strange fact is that if I don't declare the class and I use the singles functions, the string in die is correctly visualized, I really cannot understand.