There was an error while processing a database query - Page 2 There was an error while processing a database query - Page 2
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

There was an error while processing a database query

Started by banburymike, February 26, 2006, 06:59:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

banburymike

Thats sent me cross eyed,

I'm happy to try with 2 usernames, but how would I add more if I need to?

banburymike

Right I've got my gallery back online, added Nibblers code (all seems well thank you)

I'm now using 2 user names this should half my chances of further crashes,

but I would still like to be able to use maybe 4 or 5  random usernames if thats possible?

Can any one make it easy for me  ???

Thanks to those that have helped so far  ;D

Stramm

<?php
// Coppermine configuration file
$x rand()&3//edit here to if you add or remove users --> 4 users 3, 2 users 1, 6 users 5 etc
$user = array(
 
=> "user1",
 
=> "user2",
 
=> "user3",
 
=> "user4",
);
$pass = array(
 
=> "pass1",
 
=> "pass2",
 
=> "pass3",
 
=> "pass4",
);

// MySQL configuration
$CONFIG['dbserver'] =                         'localhost';        // Your database server
$CONFIG['dbuser'] =                         $user[$x];        // Your mysql username
$CONFIG['dbpass'] =                         $pass[$x];                // Your mysql password
$CONFIG['dbname'] =                         '****_copperminegallery';        // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =                'cpg133_';
?>

banburymike

Thank you very much for taking the time to help Stramm!!  ;D

This should help keep my gallery online.

Cheers.. Mike  :)


banburymike

I have now added Stramms mod with 4 user names,
all seems to be working well at the moment
I suppose only time will tell if my problem has been cured,

once again, thank you! to those that have helped  ;D