Guest User

Untitled

a guest
Nov 17th, 2017
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. $query="select * from user where username='$uname' and password='$pwd'";
  2. $res=mysqli_query($conn,$query); //$conn is your connection object
  3. if(mysqli_num_rows($res)>0){
  4. $_SESSION['loggedin']=true;
  5. }
Add Comment
Please, Sign In to add comment