<?php
require 'function.php';
require 'cek.php';
?>

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>lihat</title>
</head>

<body>
    <div class="card">
        <div class="card-body">
            <?php
            $no = 0;
            $ambilsemua = mysqli_query($conn, "SELECT * FROM sprint");
            while ($spt = mysqli_fetch_array($ambilsemua)) {
                $nama = $spt['nama'];
                $foto = $spt['foto'];
                $ids = $spt['id'];
                $no++;
            }

            ?>

            <img src="img/<?php echo $foto; ?>" alt="">
        </div>
    </div>
</body>

</html>