thedevdojo / php-login-script

This is a simple PHP login script using PHP, PDO, and MySQL
96 stars 71 forks source link

Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, bool given in C:\xampp\htdocs\login\login.php:20 Stack trace: #0 {main} thrown in C:\xampp\htdocs\login\login.php on line 20 #4

Open deepu0111 opened 3 years ago

deepu0111 commented 3 years ago

do provide me a sol as i just downloaded the file nd have no idea about error

jesperschreuder commented 3 years ago

Edit line 20 to this: if(isset($results['id']) && password_verify($_POST['password'], $results['password']) ){

poorkid8921 commented 3 years ago

Edit line 20 to this: if(isset($results['id']) && password_verify($_POST['password'], $results['password']) ){

thx