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