Jump to content
Larry Ullman's Book Forums

Recommended Posts

I am trying to create a form that includes two drop-down select menus that each display records from their respective table from a database.  Each drop-down menu uses the require statement to call my mysqli_connect script as does the overall form when it is called to insert the records, making 3 total require statements.

 

When I tested the page it worked on the testing server but now I receive Constant DB_NAME, DB_HOST, DB_PASSWORD, and DB_USER already defined errors now that the site is live.

 

I have tried using require_once on one, two , or all three calls instead of require but then one of my drop-down menus stops working and seem to get the same message.

 

Any help would be appreciated.

Link to comment
Share on other sites

 Share

×
×
  • Create New...