Hi all,
I am having a problem with the "create a forum" tutorial.
The rest of the forum works okay but when i go to post a message i fill in the form and get the following error:
I've been through the tutorial a few times to find where i went wrong but can't find anything. I have also googled the problem and come up empty. If anyone could please help with this it would be much appreciated. I get that the idtop_msg isn't getting a value on the post message page but can't understand why not.
Thanks,
MsKazza
This may be too simple of an answer but here are the first things to check:
-
The error is telling you that the idtop_msg is NULL or empty.
-
Without reading the tutorial, the deal is only one of a few things. Either you didn’t set the database to auto increment that column (creating its own id)
Or you were supposed to have carried that id from the database to an hidden field, or URL or a field on a previous page… or somewhere that it could be referenced again. When you POST that Id is not present somwhere on your page and so it gets a NULL value.
-
If all of that is right and you know the id is present on the page...then you need to check your insert/update configuration, you may have one of the SQL varibles marked incorrectly or one of those sneaky cut aand paste feilds renamed itself to xxx2 ...grrr.
-
There’s nothing majorly complicated in that tutorial so I think you’ll find that if you track back your steps, you’ll see that id is not being carried from one of the three placed I mentioned.
-
I hope this helps.
-
Cheers- Good luck.
North America
Europe, Middle East and Africa
Asia Pacific