Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $sql_username_validate="SELECT * FROM user WHERE username='$username' AND password='$password'";
- $result=mysql_query($sql_username_validate,$conn);
- $count=mysql_num_rows($result);
- echo $count;
- if($count==1)
- {
- echo "YES";
- header ('Location:../user/index.php');
- }
- else
- {
- header ('Location:../signin.php');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement