我想在创建之后获取行的ID。我正在使用PDO。
这是我的代码:
$insertNewIndividualConv = $bdd->prepare('INSERT INTO conv_individual(user1, user2, created) VALUES(:user1, :user2, :created)');
$insertNewIndividualConv -> execute(array(
"user1"=>$user1verif,
"user2"=>$user2verif,
"created"=>date("F j, Y, g:i a")
));
//Extract ID of this new row here
谢谢。