Please help me figure out why I can't connet to the database

Discussion in 'PHP' started by carl_in_florida, Aug 2, 2007.

  1. #1
    I am no PHP genius but I can complete a config file. I have checked and rechecked. It is just on my test domain so I use very basic usr names and pw.

    Anyway, here is what I am getting:

    Here is line 169 - 171


     
    carl_in_florida, Aug 2, 2007 IP
  2. exodus

    exodus Well-Known Member

    Messages:
    1,900
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    165
    #2
    Have you set each of these variables to the proper values?

    $host
    $login
    $pass
    $database
    Code (markup):
    Is the varabiles being set before you try to connect to the database through php?

    From the error message it said you are not using a PASSWORD (using password: NO) . This means that you are not setting at least the password before trying to connect. So, something is wrong with your variables at least.

    If the variables are properly set. Well, the letter.php is what the error is reported in. So, makes sure config.php is included properly before the script makes the call to connect to the mysql database.
    .
     
    exodus, Aug 2, 2007 IP
    carl_in_florida likes this.