| Fou-Lu |
01-18-2013 02:35 PM |
Quote:
Originally Posted by epheterson
(Post 1307070)
Never in my life have I spent so much time on such a tiny thing. I hope somebody finds this page someday, thanks.
|
Lol, its amazing what one letter difference can do ;)
Since you are already using the $db in an object oriented fashion with the error checking, why not continue doing so in the rest of the execution? That would get around some of the problems like above. The incorrect parameter type should be classified by an E_WARNING level, while if you have the incorrect method completely it would be E_ERROR. So at least you'd get a white output if you don't have error reporting enabled versus normal output missing the desired data.
OO mysqli also removes the mysqli_ from the prefix of the methods, so its more difficult to make an error on that one.
|