title: get autoincrement value reliably across sqlite3 and mysql
body: <p>Is there some standard way to get the last AUTOINCREMENT'd value which works in both MySQL and SQLite3?</p>
  
  <p>I'm using PHP, so if there's some PDO way to do it, that's fine.</p>
  
  <hr>
  
  <p>Please help me with an example in your answer, not just a link, because I'm a bit of a novice at the whole SQL DB thing.</p>