I am trying to do Login using PHP & phpmyadmin
as you can see im using functions from differrent classes to do that
1 - DB class-fetch data
2-Users class-check user (Authentication)
3-Login class-(Logging in//setting session variables)
Help if you ca
Fatal error: Uncaught TypeError: mysqli_fetch_object(): Argument #1 ($result) must be of type mysqli_result, bool given in C:\Users\dabya\OneDrive\Documents\xamp\htdocs\HR\database.php:50 Stack trace: #0 C:\Users\dabya\OneDrive\Documents\xamp\htdocs\HR\database.php(50): mysqli_fetch_object(false) #1 C:\Users\dabya\OneDrive\Documents\xamp\htdocs\HR\classes.php(118): database->singleFetch(βSELECT * FROM uβ¦β) #2 C:\Users\dabya\OneDrive\Documents\xamp\htdocs\HR\classes.php(395): users->checkUser(β201700013β, β123123123β) #3 C:\Users\dabya\OneDrive\Documents\xamp\htdocs\HR\login.php(13): Login->login(β201700013β, β123123123β) #4 {main} thrown in C:\Users\dabya\OneDrive\Documents\xamp\htdocs\HR\database.php on line 50