Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $query="select * from user where username='$uname' and password='$pwd'";
- $res=mysqli_query($conn,$query); //$conn is your connection object
- if(mysqli_num_rows($res)>0){
- $_SESSION['loggedin']=true;
- }
Add Comment
Please, Sign In to add comment