Dhiika04
Coding list-siswa php - Dhiika04

Image

Follow Us

About Me

Followers

Blog Archive

DhikAnime Tempatnya Nostalgia Kartun Dulu, Masa Kecil adalah Kenangan yang sangat indah.

Coding list-siswa php

Post a Comment

 <?php include("config.php"); ?>


<!doctype html>

<html>

<head>

<tittle>Pendaftaran Siswa Baru</tittle>

</head>


<body>

<h3>SISWA YANG SUDAH MENDAFTAR</h3>

<nav>

<a href ="form-daftar.php">[+]Tambah Baru</a>

</nav>

<br>

<table border ="1">

<thead>

<tr>

<th>No</th>

<th>Nama</th>

<th>Alamat</th>

<th>Jenis Kelamin</th>

<th>Agama</th>

<th>Sekolah Asal</th>

<th>Aksi</th>

</tr>

</thead>

<tbody>

<?php

$sql="select * from calon_siswa";

$query=mysqli_query($conn,$sql);

while ($siswa = mysqli_fetch_array($query)) {

echo "<tr>";

echo "<td>".$siswa ['id']."</td>";

echo "<td>".$siswa ['nama']."</td>";

echo "<td>".$siswa ['alamat']."</td>";

echo "<td>".$siswa ['jenis_kelamin']."</td>";

echo "<td>".$siswa ['agama']."</td>";

echo "<td>".$siswa ['sekolah_asal']."</td>";

echo "<td>";

echo "<a href='form-edit.php?id=".$siswa['id']."'>Edit</a> | ";

echo "<a href='hapus.php?id=".$siswa['id']."'>Hapus</a>";

echo "</td>";

echo "</tr>";

}

?>

</tbody>

</table>

<p>Total Pendaftar : <?php echo mysqli_num_rows ($query) ?> </p>


</body>

</html>

Related Posts

Post a Comment