$DB_site->insert_id() gives you the id generated by the last mySQL INSERT statement (if inserting into a table with an auto-increment column like postid, threadid, etc.).
But you don't need that (see my previous post) if you are using vB functions to create threads/posts - only if you are manually dealing with the database.
> But I can only use $post['threadid'] and $post['postid'] after the build_new_post is hit in the code, correct?
Yes, that's correct.
|