Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username=$_POST['username'];
- $password=$_POST['password'];
- //$d=encript($password);
- $query=" SELECT * FROM register WHERE username='$username' AND password='$password'";
- echo $query;
- $result=mysqli_query($connection,$query);
- $count=mysqli_num_rows($result);
- if($count==1){
- header("Location: welcome.php");
- }else{
- echo "<br>error";
- }
- ?>
Add Comment
Please, Sign In to add comment