Its the part of referencing the ID's. Lets say we have two pages: Page A and Page B. Page A's post ID is 1 Page B's post ID is 2. I'm assuming that on the form to take the comments, I will add another hidden field which sets the post_id for those comments on that particular page. How would I go about setting that value? Does that make sense? Maybe I'm missing something.
Right now, I have two tables: comments and entries. On the comments table I have the name, date, website, comment, etc. and then I have a post_ID.
On the entries table, I have entry ID (auto incremented) and title (set via a from like you suggested).
I don't really know how to explain my problem. It boils down to a SELECT statement that displays all comments whose post_id = entry_id. What I'm having trouble with is connecting those two.
The entry_id is set automatically so that's easy. The post_id will be set....how? And how will I associate each entry_id with the actual file?
I know that's a lot of questions, but I'm trying to accurately express the problems I'm having. Forgive me if I'm working backwards, or if I'm just missing something.
I REALLY appreciate your help. You have NO idea where I'd be without you (well you probably do).
Thanks!
-iMaster
Right now, I have two tables: comments and entries. On the comments table I have the name, date, website, comment, etc. and then I have a post_ID.
On the entries table, I have entry ID (auto incremented) and title (set via a from like you suggested).
I don't really know how to explain my problem. It boils down to a SELECT statement that displays all comments whose post_id = entry_id. What I'm having trouble with is connecting those two.
The entry_id is set automatically so that's easy. The post_id will be set....how? And how will I associate each entry_id with the actual file?
I know that's a lot of questions, but I'm trying to accurately express the problems I'm having. Forgive me if I'm working backwards, or if I'm just missing something.
I REALLY appreciate your help. You have NO idea where I'd be without you (well you probably do).
Thanks!
-iMaster