my question is: the query needs to check if id = 1 then show all the person which have that number., im fairly new to this so I hope you guys can help me.
<?php
include("header.php");
include("checklogin.php");
include('menu.php');
$groep = $_SESSION['groep'];
$naam = $_SESSION['inlognaam'];
$qryGebruikers1="SELECT student.klas_id, gebr.id, gebr.inlognaam, gebr.wachtwoord, rol.naam as rol from gebruiker as gebr
                WHERE studen.klas_id = '1'
                inner join rol on gebr.rol_id=rol.id
                order by gebr.inlognaam;";
$result1=mysqli_query($conn,$qryGebruikers1);
if ($groep == 'verzekering' && $naam == 'verzekering2') 
        {
            echo 'U bent verzekering 2';
        }
(this is in a table) | /
?>
    while  ($row1=mysqli_fetch_array($result1))
    {
        if ($groep == 'verzekering' && $naam == 'verzekering1' )
        {
                    echo '<tr>
                    <td>'.$row1["inlognaam"].'</td>
                    <td>'.$row1["rol"].'</td>
                    <td><a href="changeuser.php?id='.$row1["id"].'&action=edit"><img src="images/edit.png" alt="Wijzigen" style="border: 0px;" /></a></td>
                    <td><a href="changeuser.php?id='.$row1["id"].'&action=delete"><img src="images/drop.png" alt="Verwijderen" style="border: 0px;" /></a></td>
                    </tr>';
        }
    }
?>
I tried to switch inner join and where
 
     
    