Guest User

action

a guest
Mar 4th, 2018
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. <?php
  2. include '../config.php';
  3.  
  4. $username=$_POST['username'];
  5. $password=md5($_POST['password']);
  6. $kode=$_POST['kode'];
  7.  
  8.  
  9. $cek=mysql_query("select * from user where password='$password' and username='$username'");
  10. if(mysql_num_rows($cek)){
  11.     if($cek){
  12.         mysql_query("SELECT * FROM `pinjam` WHERE username='$username' and kode= '$kode'");
  13.         header("location:pinjam.php?pesan=sukses&kode=$copin");
  14.     }
  15. }else{
  16.      header("location:pinjamanq.php?pesan=sgagal");
  17. }
  18.  
  19.  ?>
Add Comment
Please, Sign In to add comment