Created
January 21, 2018 07:52
-
-
Save netwons/848215982cd8998cd7cfa0fe64cc97d6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment