Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <?php
  2. include('pengesahan.php'); //pengesahan login terlebih dahulu
  3. require('config.php'); //sambung ke p.data
  4.  
  5. if (!isset($_POST["a1"]))
  6. {
  7.  
  8. $a1=$_POST["a1"];
  9. $a2=$_POST["a2"];
  10. $a3=$_POST["a3"];
  11. $a4=$_POST["a4"];
  12. $a5=$_POST["a5"];
  13.  
  14. $save=mysqli_query($sambung, "INSERT into pinjaman
  15. (idmurid,idperalatan,tarikhpinjam,tarikhpulang,idpinjaman) values
  16. ('$a1',$a2','$a3','$a4','$a5')");
  17. echo "<script>alert('Tambah rekod baru berjaya'); "
  18. . "window.location='berdaftar.php'</script>";
  19.  
  20. }
  21. exit();
  22.  
  23. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement