For working first make two changes:
1.) Functions.php file database changes
2.)/includes/dbconn.php file database changes
Then connect database to your project sudo
Then run php local server php -S localhost:8000 on your machine and simple run the project.