Ini from Pencariannya :
<style type="text/css">
tr:hover{
background:blue;
color:white;
}
</style>
<h1> Data siswa</h1>
<form method="get" action="#">
<table class="table" align="right">
<tr>
<td data-label="NIS" align="right">
<input type="hidden" name="page" value="data_siswa">
<input type="text" name="kata_kunci">
<input type="submit" name="cari">
</td>
</tr>
</table>
</form>
<?php
include"conn/config.php";
if(!isset($_GET['kata_kunci']))
{$perintah="select * from tb_siswa";}
else
{
$kata_kunci=$_GET['kata_kunci'];
$perintah="select * from tb_siswa WHERE
nis='$kata_kunci' OR
nama='$kata_kunci' OR
tempat_lahir='$kata_kunci' OR
jenis_kelamin='$kata_kunci' OR
tanggal_lahir='$kata_kunci' OR
nama_ibukandung='$kata_kunci'";}
$query=mysqli_query($koneksi,$perintah);

Tidak ada komentar:
Posting Komentar