mrs_cl4y

update

May 31st, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. <?php
  2.  
  3. //die('<pre>'.print_r($_POST,1));
  4. include "koneksi.php";
  5. foreach($_POST['npm'] as $npm){
  6. $absen=$_POST['absen'][$npm];
  7. $tugas1=$_POST['tugas1'][$npm];
  8. $tugas2=$_POST['tugas2'][$npm];
  9. $tugas3=$_POST['tugas3'][$npm];
  10. $nilai_ujian=$_POST['nilai_ujian'][$npm];
  11.  
  12. $sql="UPDATE mhsnilai SET absen='$absen',tugas1='$tugas1', tugas2='$tugas2', tugas3='$tugas3', nilai_ujian='$nilai_ujian'";
  13.  
  14.  
  15. //$result=mysqli_query($conn,$sql) or die echo "wah error nih";
  16. $result=mysql_query($sql);
  17. //while ($row=mysqli_fetch_array($result)){
  18. header("Location: 1ia01.php");
  19. }
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment