Posts: 175
Threads: 13
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Sep 2013
Reputation:
0
Hello, ive got the website for my ep BlackFire prenium,everything is working but when im about to register an account it saaid:
Notice: Undefined index: root in C:\xampp\htdocs\page\page_register.php on line 30
Notice: Undefined index: in C:\xampp\htdocs\page\page_register.php on line 30
Notice: Undefined index: user in C:\xampp\htdocs\page\page_register.php on line 34
Notice: Undefined index: db in C:\xampp\htdocs\page\page_register.php on line 34
Strict Standards: Only variables should be passed by reference in C:\xampp\htdocs\page\page_register.php on line 86
Strict Standards: Only variables should be passed by reference in C:\xampp\htdocs\page\page_register.php on line 87
Strict Standards: Only variables should be passed by reference in C:\xampp\htdocs\page\page_register.php on line 88
Strict Standards: Only variables should be passed by reference in C:\xampp\htdocs\page\page_register.php on line 89
If someone have a idea about how to fixe it?please
Setting atm :
// Dont change below here unless u know what u are doing -------------------------------------------------------------------
$conf[db][dsn] = sprintf("mysql:host=%s;dbname=%s", $conf[db][db], $conf[][data1]);
try
{
$db = new PDO($conf[db][dsn], $conf[db][user], $conf[db][db]);
}
catch(PDOException $e)
{
die(Error connecting to the database<br />Registration is not possible at this moment.);
Posts: 768
Threads: 40
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: May 2011
Reputation:
0
change the error reporting in php.ini to E_ALL ~ E_NOTICE or something like that
notices normally shouldnt display
Posts: 281
Threads: 22
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Oct 2012
Reputation:
0
or add
error_reporting(0);
Posts: 175
Threads: 13
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Sep 2013
Reputation:
0
Ok, could you please explain me where to add it? cuz i really dont understand php... :/
Posts: 175
Threads: 13
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Sep 2013
Reputation:
0
ok i did replace die(Error connecting to the database<br />Registration is not possible at this moment.); for die(error (0)) now i can register account but it still show other stuff i posted o.O
Posts: 730
Threads: 36
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Aug 2011
Reputation:
0
Explain me why you did it? You just have to add
error_reporting(0);
after
<?php
at every page of the website.
Posts: 175
Threads: 13
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Sep 2013
Reputation:
0
ohhhh ok this way its better lol thanks: )
Posts: 175
Threads: 13
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Sep 2013
Reputation:
0
Hello,idk if i can post her about something else..(its related about website setting..) i got seals page on my website, but wheni click on a char(i dont see nameof it) then it said choose your own character...I have something special to do? and also i have to make a quiery in db for the seals?
Thanks again for your answer.
Arnii
Posts: 175
Threads: 13
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Sep 2013
Reputation:
0
Hi.
As you got your answer,and your problem to solved, I am gonna move that topic to Solved section.
Thanks,
-LCKB Staff