Jump to content
Larry Ullman's Book Forums

swlee

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by swlee

  1. 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.

     

     

     

     

×
×
  • Create New...