heryvandoro

Untitled

Mar 5th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. <?php
  2. include 'connect.php';
  3. session_start();
  4. if (!isset($_SESSION['Guru'])) {
  5. header("location:login.php");
  6. }else {
  7. $guru =$_SESSION['Guru'];
  8. //$qw=mysqli_query($con,"select nama_lengkap from user where id='$guru' " );
  9.  
  10. //$aa=mysqli_fetch_array($qw);
  11. //echo $aa['nama_lengkap'];
  12. }
  13. ?>
  14. <br>
  15. <a href="doLogout.php">Log Out</a>
  16. <table border="1">
  17. <tr>
  18. <td>siswa</td>
  19. <td>siswas </td>
  20. </tr>
  21.  
  22. <?php
  23. //$usr =mysqli_query($con,"select nama_lengkap from user where role ='siswa' ");
  24. $pls=mysqli_query($con," select * from score inner join user on score.id = user.id");
  25. while ( $view=mysqli_fetch_array($pls)) {
  26. ?>
  27. <tr>
  28. <td> <?php echo $view['nama_lengkap']; ?></td>
  29. <td> <a href="insertnilai.php?id=<?php echo $pls['id']?>">insertnilai</a> </td>
  30. </tr>
  31. <?php } ?>
  32. </table>
Advertisement
Add Comment
Please, Sign In to add comment