Jump to content

Comment system


lostprophetpunk

Recommended Posts

I had finally got round to finishing most of my blog system, but there is one important feature that is missing from it, a comment system.

 

I have set up the following comments table in my phpmyadmin program...

 

comment_id

name

email

comment

 

In my articles table I have the following...

 

article_id

article_name

entry

poster

date

time

editpost

 

Is there any way I can link both the tables, and how would I go about doing this and setting up so that the relevant comments to the relevant articles.

 

I really need help on this as this has been confusing me for ages.

Link to comment
https://forums.phpfreaks.com/topic/121833-comment-system/
Share on other sites

I had finally got round to finishing most of my blog system, but there is one important feature that is missing from it, a comment system.

 

I have set up the following comments table in my phpmyadmin program...

 

comment_id

name

email

comment

 

In my articles table I have the following...

 

article_id

article_name

entry

poster

date

time

editpost

 

Is there any way I can link both the tables, and how would I go about doing this and setting up so that the relevant comments to the relevant articles.

 

I really need help on this as this has been confusing me for ages.

 

Make the comment table look like so:

 

comment_id

article_id

name

email

comment

 

Then for each comment that is posted, enter the article number with it. Then on any given article, just output the comments with that article id number.

Link to comment
https://forums.phpfreaks.com/topic/121833-comment-system/#findComment-628584
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.