如何使用mysqli prepare语句获取最后一条记录的insert_id,例如以下示例?
$stmt = $this->mysqli->prepare("INSERT INTO test (name) values (?)")
$stmt->bind_param('s', $name);
$stmt->execute();
如何使用mysqli prepare语句获取最后一条记录的insert_id,例如以下示例?
$stmt = $this->mysqli->prepare("INSERT INTO test (name) values (?)")
$stmt->bind_param('s', $name);
$stmt->execute();