That did not work. Did you mean to add the { after the } at the very end where the break; was?
You have a number of missing/mismatched braces.
Line 37: Where is the closing brace for this switch construct?
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : "new";
switch($action) {
Line 99: Where is the closing brace for this if-conditional? The closing brace that matches is on line 136, but I do not think that was what you had in mind.
if(empty($nickname)) {
$errors[] = "The nickname field was blank! <br />";
Line 142: Can you find the closing brace for this?
if(isset($_GET['nickname']) && isset($_GET['code']))
{
Line 150: What about this one?
else
{
Basically, you need a good text editor that provides line numbering and some way for you to identify matching braces/parentheses/brackets. Both Notepad2 and Notepad++ are suitable (though I prefer the latter for the tabbed interface, nonetheless the former is pretty).
Also, you need to be consistent in your brace placement. You have used:
if (condition) {
// ...
}
and
if (condition)
{
// ...
}
Pick one and stick to it.
By the way, FatalError, your link to Notepad2 is wrong. It should be:
http://www.flos-freeware.ch/notepad2.html