title: Getting the inserted id MYSQL
body: <p>I want to get the last inserted id in MySQL</p>
  
  <p>easiest way is to use <code>$mysqli-&gt;insert_id;</code> My question is is this the best way to do it?</p>
  
  <p>What if another user insert another post at the same and will it give a wrong id? </p>
  
  <p>Appropriate any comments. </p>