I'm in the process of coding my very first blog. With the help of various textbooks and other forums, I managed to compile a semi-working code.
Right now I have a code that accepts and displays a comment, but the problem is that it coordinates which comments follow that message. My current setup - all my posts are HTML files, and comments are stored in a database. I also have a form that creates a new line with a unique message identifier and a header for each message.
My basic database setup now looks like this: 1 database, 2 tables. Message table and comment table. In the comments table, I have a common name, site, comment, etc., And I also have a unique identifier that automatically increases for each comment. Then I have a post_id that should match the assigned post.
In the message table, I have only two fields: entry_id and title. The title is manually set by me, and entry_id is automatically incremented. NOTE. The record itself is NOT stored in the database.
So my current problem is how to set post_id for each comment page and how to link entry_id to the actual post. Hope this is not too embarrassing. Thanks for any help!
-iMaster
source share