Fatal error: Uncaught TypeError: mysqli_num_rows(): Argument #1 ($result) must be of type mysqli_result, bool given in E:\xampp\htdocs\firstview\core\routes\custom_router.php:45 Stack trace: #0 E:\xampp\htdocs\firstview\core\routes\custom_router.php(45): mysqli_num_rows(false) #1 E:\xampp\htdocs\firstview\core\routes\router.php(55): require('E:\\xampp\\htdocs...') #2 E:\xampp\htdocs\firstview\core\app.php(124): require('E:\\xampp\\htdocs...') #3 E:\xampp\htdocs\firstview\index.php(25): require('E:\\xampp\\htdocs...') #4 {main} thrown in E:\xampp\htdocs\firstview\core\routes\custom_router.php on line 45