-2

Image URL

Error: Parse error: syntax error, unexpected end of file in D:\OSPanel\domains\register\signup.php on line 47

2 Answers2

0

One more curly brace should do it.

Mike Mannakee
  • 361
  • 1
  • 5
0

It looks like you are missing a curly bracket at the end of the PHP code. You need to close your if(isset($_POST['submit'])) So by adding a single } before your closing PHP tag, you'll fix this error.

Try lining things up a little better to keep track of what is closed and what isn't.

jddev81
  • 86
  • 4
  • On a side note. You should really look into the use of [prepared statments](https://www.w3schools.com/php/php_mysql_prepared_statements.asp). Inserting user input into the database directly is never a good idea. – jddev81 Mar 09 '19 at 22:53