Jump to content

Connecting to databases IF statement??


ReeceSayer

Recommended Posts

hi i was just wondering how i would go about including two connection files...

 

I'm working on a project for university and i have to switch between connecting to my apache server and the university server. I want to make it so that the webpage connects to the correct database for which server its on... rather than having to constantly update 10 of my files to include connection2 rather than connection 1.

 

Any help would be awesome thanks

 

Link to comment
https://forums.phpfreaks.com/topic/184451-connecting-to-databases-if-statement/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.