Guest User

Untitled

a guest
Feb 3rd, 2018
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <?php
  2.  
  3. $username=$_POST['username'];
  4. $password=$_POST['password'];
  5. //$d=encript($password);
  6. $query=" SELECT * FROM register WHERE username='$username' AND password='$password'";
  7. echo $query;
  8. $result=mysqli_query($connection,$query);
  9. $count=mysqli_num_rows($result);
  10. if($count==1){
  11. header("Location: welcome.php");
  12.  
  13. }else{
  14. echo "<br>error";
  15. }
  16.  
  17. ?>
Add Comment
Please, Sign In to add comment