Here is my code:

```
<?php
    require_once('config.php');
    $link = mysqli_connect($db_host, $db_user, $db_pass, $db_name) or die ('Your DB connection is misconfigured. Enter the correct values and try again.');
?>

```

I have stored my host, username, password and database name in the separate file config.php. I know that the information is correct because I can connect to my database via putty, but I keep getting the error:

> 
> Warning: mysqli\_connect(): (HY000/1045): Access denied for user
>  'blank'@'T9AF3.WPA.blank.Ca' (using password: YES) in
>  C:\xampp\htdocs\temp2\index.php on line 3 Your DB connection is
>  misconfigured. Enter the correct values and try again.
> 
> 
> 

Note: 'blank' is there to protect my identity and is not a typing error.

Edit: I only used putty to test that my login information was correct. Putty has very little to do with my actual question.

Edit2: 

```
<?php
    $db_host = 'host';
    $db_user = 'user';                  
    $db_pass = 'pass';                  
    $db_name = 'dbname';
?>

```

These are filers.