View difference between Paste ID: hD1JsayQ and SDvgdekz
SHOW: | | - or go back to the newest paste.
1
<table id="dataTables" class="display" cellspacing="0" width="100%">
2
        <thead>
3
            <tr>
4
                <th>NO.</th>
5
                <th>NIM</th>
6
                <th>Nama Mahasiswa</th>
7
                <th>Jenis Kelamin</th>
8
                <th>Tempat Lahir</th>
9
                <th>Tanggal Lahir</th>
10
                <th>Alamat</th>
11
                <th>Nomor Telepon</th>
12
                <th>Fakultas</th>
13
                <th>Nomor Seri Ijazah</th>
14
                <th>Lainnya</th>
15
            </tr>
16
        </thead>
17
        
18
        <tbody>
19
            <?php
20
            
21
            include('koneksi.php');
22
            
23
            $no = 1;
24
            $res = $connect->query("SELECT * FROM ijazah");
25
            while($row = $res->fetch_assoc()){
26
                echo '
27
                <tr>
28
                    <td>'.$no.'</td>
29
                    <td>'.$row["nim"].'</td>
30
                    <td>'.$row["nama_mahasiswa"].'</td>
31
                    <td>'.$row["jenis_kelamin"].'</td>
32
                    <td>'.$row["tempat_lahir"].'</td>
33
                    <td>'.$row["tanggal_lahir"].'</td>
34
                    <td>'.$row["alamat"].'</td>
35
                    <td>'.$row["no_telpon"].'</td>
36
                    <td>'.$row["fakultas"].'</td>
37
                    <td>'.$row["no_seri"].'</td>
38-
                    <td><a href="alamat.php?id=<?php echo $data['id'];?>View</a></td>
38+
                    <td>
39
					<a href="alamat.php?id_ijazah=<?php echo $data['id'];?>">
40
						View
41
					</a>
42
					</td>
43
                </tr>
44
                ';
45
                $no++;
46
            }
47
            ?>
48
        </tbody>
49
    </table>
50
51
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
52
    <script src="bootstrap/js/bootstrap.min.js"></script>
53
    <script src="bootstrap/js/jquery-1.12.0.min.js"></script>
54
    <script src="bootstrap/js/jquery.dataTables.min.js"></script>
55
    <script>
56
    $(document).ready(function() {
57
        $('#dataTables').DataTable();
58
    } );
59
    </script>