CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.

YesSoftware Forums -> CodeCharge Studio -> Perl

 Changing database connections at runtime

Print topic Send  topic

Author Message

Posts: 181
Posted: 09/13/2004, 11:35 PM

I need a way to change the the ' DBI string' in
$self->{DataSource} = ' DBI string'
line in the clsDByyyyyy class generated in the file
and not manually.

the generated code surrounds the DBI connection string with ''
if it was "" I could have entered a variable name inside

I need it in order to connect to different database according
to user preferences, and my client request the database will be separated physically

Can I chnage the code generator to generate "" instead of the '' ?

View profile  Send private message

Posts: 57
Posted: 09/28/2004, 3:20 PM

hi roeya

i have the same issue, need to let the enduser specifi his/her databaseserver db name password and such.

actually i write a kind of "wrapper" to write the db_mysql file directly to alter "projectsettings" at runtime#

If one gives up, he told himself he failed.
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

Internet Database

Visually create Web enabled database applications in minutes.

Home   |    Search   |    Members   |    Register   |    Login

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