Mekaboo Posted November 30, 2021 Share Posted November 30, 2021 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 More sharing options...
Ingolme Posted November 30, 2021 Share Posted November 30, 2021 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 More sharing options...
Mekaboo Posted November 30, 2021 Author Share Posted November 30, 2021 @Ingolme I wasn't getting an error message and that's the thing that blows me because it makes it hard to correct. It's something in the body but don't know what it is☹️ Link to comment Share on other sites More sharing options...
Ingolme Posted November 30, 2021 Share Posted November 30, 2021 If there's no message then how do you know there's an error? I have nothing to work with right now. 1 Link to comment Share on other sites More sharing options...
Mekaboo Posted December 1, 2021 Author Share Posted December 1, 2021 @Ingolme The closing body tag is highlighted which to me mean its not closed. There is an error somewhere..going to figure it out😊 Link to comment Share on other sites More sharing options...
Ingolme Posted December 1, 2021 Share Posted December 1, 2021 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. 1 Link to comment Share on other sites More sharing options...
Mekaboo Posted December 2, 2021 Author Share Posted December 2, 2021 @Ingolme EUREKA YOU FOUND MY ISSUE😂❤️ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now