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?
- The topic ‘Question about $wpdb->insert_id;’ is closed to new replies.