Closed Arjunpixel28 closed 4 years ago
<?php
$host="localhost"; $user="root"; $password=""; $db="demo";
mysql_conect($host,$user,$password); mysql_select_db($db); if(isset(['$userid'])){
$uname=$_POST['userid']; $password=$POST['password'];
$sql="SELECT * FROM loginform where user id='".$uname."' And password='".$password."' limit 1";
$result=mysql_query($sql);
if(mysql_num_rows($result)==1){ echo"you have successfully logged in"; exit(); } else{ echo"you have entered incorrect password"; exit(); } }
?>
<?php
$host="localhost"; $user="root"; $password=""; $db="demo";
mysql_conect($host,$user,$password); mysql_select_db($db); if(isset(['$userid'])){
$uname=$_POST['userid']; $password=$POST['password'];
$sql="SELECT * FROM loginform where user id='".$uname."' And password='".$password."' limit 1";
$result=mysql_query($sql);
if(mysql_num_rows($result)==1){ echo"you have successfully logged in"; exit(); } else{ echo"you have entered incorrect password"; exit(); } }
?>