Jump to content
Larry Ullman's Book Forums

Recommended Posts

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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...