CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 1 application using a database depending on selection

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.