So this is how my table looks like:
<div class="container">
    <div class="wrapper">
        <table class="agenda">
            <thead>
                <tr>
                    <th></th>
                    <th>Name</th>
                    <th>Amount</th>
               </tr>
               </thead>
               <tbody>
                   
                   <?php // SELECT ident,COUNT(*) FROM sales GROUP BY ident 
                   
                   foreach($link->query('SELECT ident,COUNT(*) FROM sales GROUP BY ident ASC') as $row) {
                       echo "<tr>";
                       echo "<td>img here</td>";
                       
                       $sql = "SELECT * FROM users WHERE ident='{$row['ident']}'";
                       $resultt = $link->query($sql);
                       if ($resultt->num_rows > 0) {
                           while($roww = $resultt->fetch_assoc()) {
                               
                               echo "<td>" . $roww['fullname'] . "</td>";
                           }
                       }
                       echo "<td>" . $row['COUNT(*)'] . "</td>";
                       echo "</tr>";
                   }
                   ?>
               </tbody>
           </table>
       </div>
   </div>
I am going to limit the query rows to 3 rows only, to display first, second and third place. On the foreach($link->query('SELECT ident,COUNT(*) FROM sales GROUP BY ident ASC') as $row) {. How can I do a check like if $row == 1, if $row == 2 or if $row == 3?
 
     
    