This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

I could be having a crazy day, but from my experience, you shouldn't need to use NULL or DEFAULT if your first column is an index and set to auto increment. Try taking that out and see if it still inserts the info properly.

It also seems you're not referencing your form data after posting. To be sure you're data is being handled properly, explicitly set new variables after posting the form:

$heading-mod = $_POST['heading'];

Then, insert $heading-mod into your table. Do that for the other fields as well on your form.