Jump to content

Code Structure help


Mekaboo

Recommended Posts

Hey😊

Ive attached a file to review. Unfortunately the final body/html tags wont close due to an error. Ive don't inspect and debug but nothing pops up.  Question is where is the error within the file?

Thank ya ❤️

mucode

Link to comment
Share on other sites

What does the error message say?

You really need to fix your SQL to prevent people from hacking your website with SQL injection. You should never have variables in SQL strings. Use prepared statements instead. Here's the tutorial page for prepared statements: https://www.w3schools.com/php/php_mysql_prepared_statements.asp

Link to comment
Share on other sites

That's a mark of invalid HTML.

Your <form> doesn't have a closing </form> tag, so the browser was not expecting a closing </body> tag there and marked it red.

 

There are other HTML errors as well, you have <script> tags outside of the <body> element. Nothing is permitted to be outside the <head> or </body> elements.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...