Skip to content

Instantly share code, notes, and snippets.

@sriannamalai
Last active December 22, 2015 03:59
Show Gist options
  • Save sriannamalai/6414028 to your computer and use it in GitHub Desktop.
Save sriannamalai/6414028 to your computer and use it in GitHub Desktop.
Code for simple Login verification
<?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