Webmastersite.net
Register Log In

multiple users for database...

Comments on multiple users for database...

fuee
Forum Regular

Usergroup: Customer
Joined: Nov 01, 2004

Total Topics: 56
Total Comments: 121
fuee
Posted Mar 28, 2005 - 7:03 AM:

cAN SOMEONE VERIFY THIS CODE FOR ME, WILL THIS WORK with wsnlinks if I set 3 users to share one database? Powweb allows this just wasnt sure if it will work with script.

$ruser[]="user1";
$ruser[]="user2";
$ruser[]="user3";
$db_user = $ruser[ rand(0,2) ];

$db_server = 'mysql0X.powweb.com';
$db_password = '';
$db_db = 'test';

$connection = mysql_connect($db_server, $db_user, $db_password);
mysql_select_db($db_db);


I am going to switch HOST again, my current host is limiting my cpu usage so much that my site is barely functional. I have cut down the queries to 20-30/page and with all the email problems it is not worth the $40/month. It is actually slower then when i WAS PAYING $7/MONTH.

tHANKs,
fuee
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 28, 2005 - 2:30 PM:

Looks that that ought to work in config.php.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 28, 2005 - 6:10 PM:

The message says test_1's password isn't right. But it's hard to tell what's going on without seeing the context.
fuee
Forum Regular

Usergroup: Customer
Joined: Nov 01, 2004

Total Topics: 56
Total Comments: 121
fuee
Posted Mar 31, 2005 - 6:34 AM:

i got it to work Paul. It was an error on my part

thanks,
fueewink
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.