Advertisement
Guest User

Untitled

a guest
Sep 16th, 2017
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. <?php
  2.  
  3. $username = $_PORT['username'];
  4. $password = $_POST['password'];
  5.  
  6. if ($username&&$password)
  7. {
  8.  
  9. $connect = mysql_connect("mysql9.000webhost.com","USERNAME","PASSWORD") or die ("Couldn't connect");
  10. mysql_select_db("DATABASE") or die ("Couldn't find database");
  11.  
  12. }
  13. else
  14.     die("Please enter a username and password");
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement