Quote:
|
Originally Posted by netbakers
hi all,
i am working on a opensource php module. i got a message
"Notice: Undefined variable: "
|
All this means is that you didn't explicitly declare the variable before you started using it. Technically this is a no-no, although I'm guilty of it too at times.
Proper one tenet of good coding is that you always declare variables, even if they're used in a trivial way.
I agree with Nevermind- you should fix this problem rather than ignore it. All in all, it's a bad idea to supress error messages, because they don't appear for no reason.