Hey guys,
So, I have a connections php file which contains info such as the host, username, password and database to be accessed. I'm wondering if there is anyway to make the database value to be changed later on in the website. When first logging into the website they choose a database, and so I could use something like:
$database=$GET['db'];
I am just wondering, if I used this, bearing in mind that the connections file will be included in all of the pages, would it then require for the database to be in the link string every time? If so, would it be possible to get around this somehow?
With the database possibly changing later on in the website too, the $GET method could be used when coming away from the page to change the database. It is just the concern that it would need to be included in all link strings in order to work properly.
Thanks in advance for any help :)