title: Is mysql_insert_id safe to use?
body: <p>According to the PHP documentation, <code>mysql_insert_id</code> takes the last inserted id from the mysql table.</p>
  
  <p>My question is, if I have a website that inserts more than 2 rows per second to the DB, can I use the <code>mysql_insert_id</code> and get the correct ID I am referring to in the <code>INSERT</code> query a line before?</p>