I have three tables that essentially cascade down, like:
- topic
- section (references topic id)
- subsection (references topic id and section id)
Whats the best method of writing mysql statements to create the initial topic/section/subsection so I can grab the id's (auto_incremented) of the newly created rows and use them to insert them into the second two?
edit I'm using phpbb3, dunno if that makes a huge difference, but I normally use the $db-sql_query() function