Right I have asked this question before, but I don't think anyone understood what I meant entirely.
I am stuck with referencing with mysql, for example:
I have a news post, and I want to relate the comments to that news post so that they display to the corresponing post.
I understand that you can use Joins and that I must have a news_id in both the tables News_data and Comments_data.
The problem I can't get round is this... In the news table (news_data), there is an auto incrementing field called news_id, obviously, when a new record is entered this increments by 1.
This make sense to anyone, however, in the comments table there is a normal Integer field called news_id... but I don't know how to insert the News_id into that field which corresponds with the news_post in the news_data table.