Jump to content

Problem with this line!


Szka

Recommended Posts

Hello guys, I'm starting a website but before the installation I get this error:

znote_error.png

 

So, when I check the line I see this

$connect = new mysqli($config['sqlHost'], $config['sqlUser'], $config['sqlPassword'], $config['sqlDatabase']);

Don't know what to write there because if I change it, it appears a message of the website saying: Notice: Undefined index: ......

 

Hope someone could help me because is really annoying!! 

Thanks a lot

Link to comment
Share on other sites

Looks like you haven't set up the configuration stuff yet. I don't know where $config is coming from, but the code expects it to include database information. What's in there needs to be whatever your MySQL connection details are - which should not be for the root user.

Link to comment
Share on other sites

Thanks bro! I already fixed this!

I'm having a problem with this line now 

CREATE TABLE IF NOT EXISTS `znote_guild_wars` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `limit` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  FOREIGN KEY (`id`), REFERENCES `guild_wars` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

#1005 - Can't create table `realserver`.`znote_guild_wars` (errno: 150 "Foreign key constraint is incorrectly formed")

Know anything about it? Thank you!

Edited by Szka
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.