Last active
December 22, 2015 03:59
-
-
Save sriannamalai/6414028 to your computer and use it in GitHub Desktop.
Code for simple Login verification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$username = $_POST['username']; | |
$password = $_POST['password']; | |
if ($username && $password) | |
{ | |
$connect = mysql_connect("localhost", "root", "") or die("Couldn't Connect!"); | |
mysql_select_db("phplogin") or die("Couldn't Find DB!"); | |
} | |
else die("Please Enter Both Username & Password!"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment