forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: jagwriter78 on August 02, 2007, 01:30:20 pm

Title: Multiple database usernames possible?!?
Post by: jagwriter78 on August 02, 2007, 01:30:20 pm
Hi, I was wondering if it possible to set up the database username as an array so each time the gallery loads, it chooses from a list of usernames to use to connect to the database? My host is limiting hourly connections per username to the database and I am getting critically close to that with my gallery at the moment. I tried to use a simple array function like array("username1", "username2") instead of the actual db username, but coppermine didn't like that. If anyone could tell me a work around, I'd be really greatful.
Title: Re: Multiple database usernames possible?!?
Post by: Nibbler on August 02, 2007, 03:32:43 pm
Discussed in http://forum.coppermine-gallery.net/index.php?topic=28455.0

Use Stramm's code on the second page.