x-ray
Posts: 18
|
| Posted: 05/03/2011, 12:42 PM |
|
Hello everyone,
I have the following situation:
1 application written in PHP and MySQL database end (approx. 500 pages).
Rather then making 10 different installation for each client, I would like to make 1 installation where I would like to change the database name when the application starts.
So the application should dynamically choose the database it will use by either:
- The user or company login (this would involve a separate user database)
- or depending on the URL (before the login page, select database depending on URL).
Is it possible that I can change the database name at the start of the application without having to change all the pages from the application to have the flexibility to use a different database depending on the criteria that I choose, considering that the application contains about 500 pages?
_________________
I may disapprove of what you say, but I will defend to the death your right to say it |
 |
 |
ReneS
Posts: 225
|
| Posted: 05/04/2011, 2:43 AM |
|
Hi,
Will this post help?
http://forums.codecharge.com/posts.php?post_id=112331&s...base+connection
Rene
|
 |
 |
|