Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'connect.php';
- session_start();
- if (!isset($_SESSION['Guru'])) {
- header("location:login.php");
- }else {
- $guru =$_SESSION['Guru'];
- //$qw=mysqli_query($con,"select nama_lengkap from user where id='$guru' " );
- //$aa=mysqli_fetch_array($qw);
- //echo $aa['nama_lengkap'];
- }
- ?>
- <br>
- <a href="doLogout.php">Log Out</a>
- <table border="1">
- <tr>
- <td>siswa</td>
- <td>siswas </td>
- </tr>
- <?php
- //$usr =mysqli_query($con,"select nama_lengkap from user where role ='siswa' ");
- $pls=mysqli_query($con," select * from score inner join user on score.id = user.id");
- while ( $view=mysqli_fetch_array($pls)) {
- ?>
- <tr>
- <td> <?php echo $view['nama_lengkap']; ?></td>
- <td> <a href="insertnilai.php?id=<?php echo $pls['id']?>">insertnilai</a> </td>
- </tr>
- <?php } ?>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment