I have 3 columns name,id,amount. I created 5 rows with same name. Now i retrieve one row which is topped.
Here i added my code,

```
<?php
$name = "SELECT DISTINCT name
FROM calculation";
$query = mysqli_query($conn,$name);

$count = mysqli_num_rows($query);
while($row = mysqli_fetch_assoc($query)){

echo "<div class='container'>
        <table class='table'>
    <thead>
      <tr>
        <th>Firstname</th>
        <th>Lastname</th>
        <th>Email</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>".$row['name']."</td>
        <td>".$row['phone']."</td>
        <td>".$row['balance']."</td>
      </tr></table></div>";
               }    
                mysqli_close($conn);
                     ?>

```