Ok i originally had the same issue you are/were when i tried to create a root password first. Even after editing the necessary file to add my password, it still would not connect. What I recommend (cause it worked for me) is to uninstall your xampp. Remove the associated folder as well (c:/xampp). Reinstall the xammp and when you start Apache, MySQL, and Mercury. Then hit the 'ADMIN' button next to MySQL. Once inside PhpMyAdmin, go to 'Priviledges' tab. Create a new user, before you start trying to edit the root password. Once you verify the user account is created and gaining access, you can then change the root password if you so chose.
If you're running it on your personal computer, with no one really using it other than you, does it really matter that you don't create a password? Anyways....the following code:
<?php
mysqli_connect ('localhost', 'webuser', 'BroWsIng', 'temp');
?>
You have to make sure when dealing with databases that the information reflects your database. Using the code posted above, you must have a user account of 'webuser', password must be 'BroWsing', and you must have a database name 'temp'. If not, this statement will not work on your setup. If need be, change the info to what fits your database.
Not sure if you fixed your previous problem, but it seems like you continued to move forward. Anyways, this code basically says, try to connect to database (DB_NAME), but if for whatever reason the connection fails, display an error. Visual errors are always nice to see vs a blank page. If the connection is successful, it gets assigned (=) to a variable named $dbc.
I'll be continuously checking back to see if you're still having trouble. Goodluck!
</Unpredict2ble>