View difference between Paste ID: rPEBEZEx and DkmXJbnS
SHOW: | | - or go back to the newest paste.
1
<table class="table table-striped table-bordered table-hover dataTables-example" >
2-
        <thead>
2+
  <thead>
3-
        <tr>
3+
    <tr>
4-
          <th>Nama Murid</th>
4+
      <th>Nama Murid</th>
5-
          <th>Nilai</th>
5+
      <th>Nilai</th>
6-
        </tr>
6+
    </tr>
7-
        </thead>
7+
  </thead>
8-
        <tbody>
8+
  <tbody>
9-
          <?php
9+
    <?php $no=1; ?>
10-
          $no=1;
10+
    <?php foreach ($murid as $row_murid) { ?>
11-
          foreach ($murid as $row_murid) { ?>
11+
      <tr class="gradeX">
12-
12+
        <td ><?php echo $row_murid['nama_murid']; ?></td>
13-
            <tr class="gradeX">
13+
        <?php foreach ($nilai as $row_nilai) { ?>
14-
              <td ><?php echo $row_murid['nama_murid']; ?></td>
14+
          <?php /* disini dicek dulu apakah $row_nilai['id_murid'] == $row_murid['id'], kalau sama baru tampilkan nilai */ ?>
15-
              <?php foreach ($nilai as $row_nilai) {?>
15+
          <td><?php echo $row_nilai['nilai']; ?></td>
16-
            <td> <?php echo $row_nilai['nilai']; ?> </td>
16+
        <?php } ?>
17-
            <?php } ?>
17+
      </tr>
18-
            </tr>
18+
    <?php } ?>
19-
            <?php } ?>
19+
  </tbody>
20-
        </table>
20+
</table>