daily pastebin goal
46%
SHARE
TWEET

Untitled

a guest Oct 17th, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $db = new mysqli($host, $user, $password, $database)
  2. or die("Error " . mysqli_error($db));
  3.  
  4. $sql = "SELECT name, password FROM login WHERE name = '".addslashes($login_admin->nickname)."'";
  5. $res = $db->query($sql);
  6. $user = $res->fetch_assoc($res);
  7. if($login_admin->password == $user->password){
  8.     echo "Ok";
  9. }else{
  10.     echo "faslse";
  11. }
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