-1

EDIT: THIS IS NOW FIXED & DOES NOT NEED ANY MORE ANSWERING.

Josh
  • 31
  • 5
  • 1
    Possible duplicate of [How to get useful error messages in PHP?](https://stackoverflow.com/questions/845021/how-to-get-useful-error-messages-in-php) – esqew Aug 23 '18 at 19:16
  • It's not the error message that's not working. There is something in my code that's making that error message appear. – Josh Aug 23 '18 at 19:23
  • Based on what you've written above, it's my understanding that the error reporting *is* what's not working, considering a 500 error thrown by the server is not very descriptive to what is actually causing said error. Employing some of the strategies described in the linked question will help you formulate a more concise question, to which you'll most likely receive more valuable answers to. – esqew Aug 23 '18 at 19:25
  • Was this question solved from the answer given below? @Josh If so, it'd be nice to see it marked as such by accepting the answer. – Funk Forty Niner Aug 26 '18 at 01:18

1 Answers1

2

your conditions are not properly closed, there is no "if" for this "else"

else {
        echo '<div class="alert alert-warning">That Email Already Exist.</div>';
    }
}

You should look for a PHP editor that helps you to format the code properly and find inconsistences (MS Code maybe? or Brackets?).

Alex Angelico
  • 3,306
  • 7
  • 29
  • 47