I am fairly new to PHP and am wondering if there is a way to force you to declare variables before using them. I come from an ASP background and always use the "Option Explicit" to make sure variables are always declared before use.
Cheers Gav
Turn up error reporting in your php.ini or put error_reporting(E_ALL); at the top of your pages. It will print warnings for uninitialized variables.