php login example
<?php
$username=$_POST['username'];
$pass=$_POST['password'];
$con=mysql_connect("localhost","root","");
if(!$con)
{
die('connection failed:'.mysql_error());
}
mysql_select_db("database_name",$con);
$result=mysql_query("select user,password from login_table where user='$username' AND password='$pass'");
$row=mysql_fetch_array($result);
if($row["user"]==$username && $row["password"]==$pass)
{
echo "you are validated user and your login accepted";
}
else
{
echo "sorry, invalid login id or password, try again ! ! !";
}
?>
note: if you've any query simply mail us sabhajeetkmr9@gmail.com or nimbuzz sabhajeet.delhi or whatsapp +919026413903 drop your query, without hesitation it would be my pleasure to assist you.
Comments
Post a Comment