swlee Posted September 10, 2017 Share Posted September 10, 2017 Hi, As in page 286-288, once I add... require ('../mysqli_connect.php'); myslie_close($dbc); in line 10 and 87, respectively, and register a user from Register.php, I get 4 notices: Notice: Constant DB_USER already defined in C:\XAMPP\mysqli_connect.php on line 7 Notice: Constant DB_PASSWORD already defined in C:\XAMPP\mysqli_connect.php on line 8 Notice: Constant DB_HOST already defined in C:\XAMPP\mysqli_connect.php on line 9 Notice: Constant DB_NAME already defined in C:\XAMPP\mysqli_connect.php on line 10 Is this the correct notices that I forgot somewhere to let it ignore showing on the web, or something was not correctly written either in register.php or mysqli_connect.php? Thx in advance. Link to comment Share on other sites More sharing options...
Larry Posted September 14, 2017 Share Posted September 14, 2017 That would suggest the register.php script is trying to include the MySQL database file twice. Link to comment Share on other sites More sharing options...
Recommended Posts