title: LastInserID from other table insert to table
body: <p>how i can select lastinserid from table player and insert into to test_table?</p>
  
  <pre><code> $stmt = $pdo-&gt;prepare("INSERT INTO baza.test_table (`player`) VALUES (?)");
  
     $a = mt_rand(1, 100);
     $stmt-&gt;bindParam(1, $a, PDO::PARAM_INT);
     $stmt-&gt;execute();
     print $pdo-&gt;lastInsertId().'&lt;br/&gt;';
     $pdo = null;
  </code></pre>
  
  <p>when i create account id is (autoincromentet) i want insert this id to another table</p>