WordPress.org

Ready to get started?Download WordPress

Forums

Question about $wpdb->insert_id; (1 post)

  1. alexandreuti
    Member
    Posted 1 year ago #

    I'm inserting into 2 tables: tabela01 and tabela02 follows
    1) I insert the function tabela01 arav├ęs $ wpdb-> query ($ wpdb-> prepare (...))
    2) Recupero the id with the $ wpdb-> insert_id;
    3) I insert in tabela02 with id retrieved in Step 2.

    My question is: in insertion operations competitors run the risk of retrieving the id wrong in the 2nd step?

Topic Closed

This topic has been closed to new replies.

About this Topic