Skip to content
Advertisement

What’s wrong with my SQL query?

I need a quick look at my SQL query. It’s already given me a headache. Comparing some advice I have gotten, I could not figure out the proper format for my SQL.

This is my code:

Thanks in advance!

EDIT:

Currently I have this as the form:

This is the insert query:

Seems to submit the entry, but not the values… I’m tired of looking at it and not seeing it. I appreciate all the help. Thanks!

EDIT (AGAIN):

As was pointed out by Salman A, the problem was in fact the form, and the fact that each input was identified with an “id”, instead of a “name”.

Thanks everyone, I really appreciate all the help! I guess my incorrect SQL formatting is another topic, eh?

Advertisement

Answer

Its the form that smells! Change all:

To:

Optional:

  • The form tag is misplaced; I suggest that you put the <table> inside the <form>, not the other way round.
  • I do not see a </form> and <input type="submit">.
  • You do not need a multipart/form-data encoding unless you’re uploading files.
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement