Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include '../config.php';
- $username=$_POST['username'];
- $password=md5($_POST['password']);
- $kode=$_POST['kode'];
- $cek=mysql_query("select * from user where password='$password' and username='$username'");
- if(mysql_num_rows($cek)){
- if($cek){
- mysql_query("SELECT * FROM `pinjam` WHERE username='$username' and kode= '$kode'");
- header("location:pinjam.php?pesan=sukses&kode=$copin");
- }
- }else{
- header("location:pinjamanq.php?pesan=sgagal");
- }
- ?>
Add Comment
Please, Sign In to add comment