Hi,
I'm coding a small, simple message board type system (I'm bored
).
Basically when you make a new thread it'll be entered into the 'threads' table - the threads table will contain the title of the thread and an auto increment ID (threadid).
The content of the thread will then be entered into the 'posts' table along with the thread ID.
The fields linking both of these tables together will be 'threadid' - 'threadid' will be auto increment on the 'threads' table and normal INT on the 'posts' table.
So, basically when I create the query for a new thread I need to be able to somehow enter the auto increment number that's created in the 'threads' table into the 'posts' table so they can be joined when the SELECT query is performed.
I was hoping there's some kind of 'join' one line query I can do?
Hope that all makes sense
Thanks,
Craig.
I'm coding a small, simple message board type system (I'm bored

Basically when you make a new thread it'll be entered into the 'threads' table - the threads table will contain the title of the thread and an auto increment ID (threadid).
The content of the thread will then be entered into the 'posts' table along with the thread ID.
The fields linking both of these tables together will be 'threadid' - 'threadid' will be auto increment on the 'threads' table and normal INT on the 'posts' table.
So, basically when I create the query for a new thread I need to be able to somehow enter the auto increment number that's created in the 'threads' table into the 'posts' table so they can be joined when the SELECT query is performed.
I was hoping there's some kind of 'join' one line query I can do?
Hope that all makes sense

Thanks,
Craig.