Skip to content

config issues, new install #88

@rberg11

Description

@rberg11

Hello, thanks for making this! I am having a config issue on a brand new setup. I am getting

Notice: Constant DB_HOST already defined in C:\xampp\htdocs\dcimstack\config\db.php on line 10
Notice: Constant DB_NAME already defined in C:\xampp\htdocs\dcimstack\config\db.php on line 11
Notice: Constant DB_USER already defined in C:\xampp\htdocs\dcimstack\config\db.php on line 12
Notice: Constant DB_PASS already defined in C:\xampp\htdocs\dcimstack\config\db.php on line 13

on everypage and cannot figure it out. My db.php file is as follows:

`<?php

/*

  • DB_HOST: database host, usually it's "127.0.0.1" or "localhost", some servers also need port info
  • DB_NAME: name of the database. please note: database and database table are not the same thing
  • DB_USER: user for your database. the user needs to have rights for SELECT, UPDATE, DELETE and INSERT.
  • DB_PASS: the password of the above user
    */

define("DB_HOST", "localhost");
define("DB_NAME", "dcimstack");
define("DB_USER", "dcimstack");
define("DB_PASS", "dcimstack");

// Create connection
$conn = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions