<?php
$cek ...
while($row = mysqli_fetch_assoc($cek)){
?>
...

<?php } ?> dener misin ?