Nama File : hapus_siswa.php
<?php
mysql_connect("localhost","root","root");
mysql_select_db("sisfokol");
$id=$_GET['id'];
$delete="Delete from siswa Where id='$id'";
mysql_query($delete) or die ("Error tu");
echo "<center><h3>Data berhasil di hapus</h3></center>";
echo "<center><h3><a href=tampil_siswa.php>Back Tampil Data</a></h3></center>";
?>
<?php
mysql_connect("localhost","root","root");
mysql_select_db("sisfokol");
$id=$_GET['id'];
$delete="Delete from siswa Where id='$id'";
mysql_query($delete) or die ("Error tu");
echo "<center><h3>Data berhasil di hapus</h3></center>";
echo "<center><h3><a href=tampil_siswa.php>Back Tampil Data</a></h3></center>";
?>