Retrieving a single data/record from database using php mysql

How do I retrieve a single record/data from database by searching for it’s particular id and adding it one by one according to the list of id’s in phpMyAdmin? This is what I’m working on so far.

<!DOCTYPE html>
<html lang = "en">
        <meta charset="utf-8">
        <title>Filter Booklist</title>
        <form action="" method="post">
           <input type = "text" class="btn" name="id" value="SEARCH DATA">
           <input type = "submit" name="search" value="SEARCH BY ID">

        <table border = "3">
                    <th>Product Name</th>
                    <th>Returned Date</th>

               $connection = mysqli_connect("localhost","root","");
               $db = mysqli_select_db($connection, "myfirstdb" );   

                  $id = $_POST['id'];
                  $query = "SELECT * FROM `table3`";
                  $query_run = mysqli_query($connection,$query);

                  while($row= mysqli_fetch_array($query_run))
                           <td><?php echo $row['id'];?></td>
                           <td><?php echo $row['product_name'];?></td>
                           <td><?php echo $row['quantity'];?></td>
                           <td><?php echo $row['returned_date'];?></td>


Gvien the other topic you made later, I assume you resolved this issue?