daily pastebin goal
53%
SHARE
TWEET

Untitled

a guest Jul 21st, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(isset($_POST["login"])){
  2.  
  3. if(!empty($_POST['username']) && !empty($_POST['password'])) {
  4. $username=htmlspecialchars($_POST['username']);
  5. $password=htmlspecialchars($_POST['password']);
  6. $query =mysqli_query($con, "SELECT * FROM usertbl WHEREusername='".$username."' AND password='".$password."'");
  7. $numrows=mysqli_num_rows($query);
  8. if($numrows!=0)
  9.  {
  10. while($row=mysqli_fetch_assoc($query))
  11.  {
  12. $dbusername=$row['username'];
  13. $dbpassword=$row['password'];
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top