Why I'm asking: I am trying to use an SQL database in my website, but I don't know how to connect it using PHP.
Many questions that were both similar and exactly the same have all used mysqli_connect() with 'localhost' as the host name, 'root' as the username and '' (nothing) as the password. But that just won't work for me.
I don't know if I'm doing something wrong or I just haven't read anything properly, but I can't seem to get it to connect, as I always end up with 'Connection refused' or 'Path doesn't exist' (something like that).
I also am trying to do this for a website, and not for a personal file.
Oh, and a quick sidenote, I don't know that much about PHP but more then when I last asked something regarding it.