MrSheen
02-06-2008, 11:51 AM
Hey there, im creating some forums and the database tables are as follows.
forums_cat
forums_boards
forums_topics
forums_posts
When someone posts a new topic i am wanting this to happen:
In the forums_topics table i'm wanting the topic_ID, topic_subject and topic_poster to be stored.
I can do this fine but then it comes the problem when im trying to add to the posts table.
in the posts table im wanting to add post_id, TOPIC_ID.
How can i make it add the topic ID because it needs to get the ID from the topic just added.
forums_cat
forums_boards
forums_topics
forums_posts
When someone posts a new topic i am wanting this to happen:
In the forums_topics table i'm wanting the topic_ID, topic_subject and topic_poster to be stored.
I can do this fine but then it comes the problem when im trying to add to the posts table.
in the posts table im wanting to add post_id, TOPIC_ID.
How can i make it add the topic ID because it needs to get the ID from the topic just added.