The main problem is, that you dont know which SQL Installation holds which data. I have no idea, why you dont know it, but that is the problem.
As a last try you should change your PHP code once more with the following connect parameters:
- Code: Select all
$conn = mysqli_connect("localhost", "root", "", "staff", 3307);
As you can see, apply port 3307 and use an empty password. I think, thats the correct setup for the Xampp Installation.