seboettg / citeproc-php

Full-featured CSL 1.0.1 processor for PHP
MIT License
75 stars 39 forks source link

Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in C:\xampp\htdocs\setdocs\pages\login.php on line 10 #87

Closed Arjunpixel28 closed 4 years ago

Arjunpixel28 commented 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(); } }

?>