hey guys, How can I get an auto incrementing ID that is created when sending data via AJAX and PHP?

I want the buyer_id data to display through SQL on another page. This is how I try to get it from the other page

 
<?php
include(“bd_con.php”);
$buyer-id= $_GET[‘buyer-id’];

       echo "<script>                  alert('$buyer_id')</script>";

    $query = "SELECT name, email,               city, province, identification, address, 

          extra-details, image, title, description, id_type FROM `purchased_property` inner join 

property ON purchased_property.property-id = property.id WHERE buyer-id=’$buyer-id'”;

            $linking = mysqli_query($bd_con, $query);

              $info = mysqli_fetch_assoc($linking);

?>
 
this is the form from the page I send data through AJAX
 

                <div class="form">
                    <h2>Personal data</h2>
                   <input type="text"    placeholder="Full name" id="full_name"
        name="full_name"></input>
                   <label>Date of birth</. label>
                  <input type="date"     id="date_birth" name="date_birth">
                  <div   id="paypal-button-container"></div>
       
               </div>
              </form>

 

Just as I showed you up guys, I tried by $_GET but didn’t work. I hope you can help me:)