Ok I've created a board. In mysql I have messages and topics.
In topics table i've got one interesting field: first_message_id
And in messages I need topic id.
So messages something like this:
id_msg, id_topic, blah blah blah...
and topics:
id_topic, first_message_id blah blah blah.......
The problem is that I cannot create topic, coz I don't have first message id and I cannot create id_msg coz I don't have id topic!!!!!!!!!!!!
I googled and found function: mysql_insert_id(); (displays last auto increment, well kinda useful)
So with such info I could create message without topic and then create topic and use mysql_insert_id() or no? This would work (I think)
Erm I know then selecting something I can join tables. Can I SOMEHOW do that by INSERTING? All my tries were fatal failures

So if noone can help me I guess I will use my method nr 1. (Erm at least I know how to make it work

)