• Resolved nederlandinside

    (@nederlandinside)


    Since 4 days I’m trying but no chance:
    my code looks like this.
    What is wrong???

    define(‘DB_NAME’, ‘schirni2015’);

    define(‘DB_USER’, ‘schirni2015’);

    define(‘DB_PASSWORD’, ‘******’);

    define(‘DB_HOST’, ‘localhost’);

    define(‘DB_CHARSET’, ‘utf8’);

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    Are your db name and db user one and same? double check.
    DO NOT publish your real user name etc.

    You’re using the wrong type of quotes/apostrophes for both the database name and database user values.

    If you look very closely, you’ll see that both instances of schirni2015 start with a ‘straight’ quote (‘) but end with a curly one (’). This is also the case for the password value.

    Make sure that they all open and close with straight quotes, so the correct code would be:

    define('DB_NAME', 'schirni2015');
    define('DB_USER', 'schirni2015');
    define('DB_PASSWORD', '******');
    define('DB_HOST', 'localhost');
    define('DB_CHARSET', 'utf8');

    It’s really subtle, but it makes all the difference.

    Thread Starter nederlandinside

    (@nederlandinside)

    I will try this. Did not see that myself. Thanks a lot!!!!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Parse error: syntax error, unexpected 'DB_USER' (T_STRING)’ is closed to new replies.