Guest User

Untitled

a guest
Oct 20th, 2018
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. $mysql_username = "a4232831_manager";
  2. $mysql_password = "passwoord1";
  3. $mysql_host = "mysql3.000webhost.com";
  4. $db = mysql_connect($mysql_host, $mysql_username, $mysql_password) or die("Kan niet verbinden: " .mysql_error());
  5. mysql_select_db("kasboek", $db);
  6. $sql = "SELECT * FROM users WHERE username = '$username' and password = '".md5($password)."'";
  7. $result = mysql_query($sql) or die("werkt niet, foutmelding: " .mysql_error());
  8. mysql_close($db);
Add Comment
Please, Sign In to add comment