Advertisement
Guest User

Untitled

a guest
Sep 17th, 2017
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.30 KB | None | 0 0
  1. <?php
  2.  
  3.     $username = $_POST['username'];
  4.     $password = $_POST['password'];
  5.    
  6.     if ($username && $password)
  7.     {
  8.     $connect = mysql_connect ("localhost","root","") or die ("Couldn't connect!");
  9.     mysql_select_db("phplogin") or die ("couldn't find db");
  10.    
  11.     }
  12.    
  13.     else
  14.         die("Please enter user or pass");
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement