Re: Help needed
| From: | Chris Hayes | Date: | Tue, 01 Apr 2003 14:39:32 +0000 |
| Subject: | Re: Help needed | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-141822@lists.php.net to get a copy of this message | ||
I would suppose that you have an unbalanced {} somewhere.
Restructure your code (yes, even more!) so it is easier to see such a mistake.
Some coders prefer this:
if () {
code
}
but i prefer
if ()
{
code
}
so i see immediately what {braces} belong together.
With nested braces I nest each brace set one tab deeper.
Start with the case "new": part as i removed some of your if & brace-sets within that condition and then i saw it had some closing braces left within the case:, and that is a _sin_.
Chris
PS Do you have a colorcoding editor?