Check out the Pastebin Gadgets Shop. We have thousands of fun, geeky & affordable gadgets on sale :-)Want more features on Pastebin? Sign Up, it's FREE!


By: a guest on Apr 12th, 2013  |  syntax: PHP  |  size: 0.16 KB  |  views: 45  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. $username = escape($username);
  2. $password = escape($password);
  4. $query = $db->execute("SELECT id,username FROM users WHERE username=$username AND password=$password")
clone this paste RAW Paste Data