-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelajar_carian.php
37 lines (34 loc) · 940 Bytes
/
pelajar_carian.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
include('sambungan.php');
$idpelajar = $_POST['idpelajar'];
$sql = "select * from pelajar where idpelajar = '$idpelajar'";
$result = mysqli_query($sambungan, $sql);
$pelajar = mysqli_fetch_array($result);
$namapelajar = $pelajar['namapelajar'];
$idkelas = $pelajar['idkelas'];
$password = $pelajar['password'];
?>
<link rel="stylesheet" href="senarai.css">
<table>
<caption >MAKLUMAT PELAJAR</caption>
<tr>
<th>Perkara</th>
<th>Maklumat</th>
</tr>
<tr>
<td class="keputusan">ID Pelajar</td>
<td class="keputusan"><?php echo $idpelajar; ?></td>
</tr>
<tr>
<td class="keputusan">Nama</td>
<td class="keputusan"><?php echo $namapelajar; ?></td>
</tr>
<tr>
<td class="keputusan">ID Kelas</td>
<td class="keputusan"><?php echo $idkelas; ?></td>
</tr>
<tr>
<td class="keputusan">Password</td>
<td class="keputusan"><?php echo $password; ?></td>
</tr>
</table>