Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 12th, 2013  |  syntax: PHP  |  size: 0.16 KB  |  hits: 30  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
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);
  3.  
  4. $query = $db->execute("SELECT id,username FROM users WHERE username=$username AND password=$password")