PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old October 12th, 2002, 12:45 AM
tmurphy tmurphy is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Apopka Fl. USA
Posts: 56 tmurphy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to tmurphy
managing users

is there a script out there that will let me use one application but depending on there group id use different databases? the databases are the same format but i want to keep everyone's data seperate.

example:

group: abccompany
db_name: abccompany

group: xyzcompany
db_name: xyzcompany

Reply With Quote
  #2  
Old October 12th, 2002, 12:49 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: managing users

Well, all you need to do is select the proper database for the proper group. Should just be an if/else situation, or you could use a switch statement. How are you determining what group someone is in?

Reply With Quote
  #3  
Old October 12th, 2002, 01:53 AM
tmurphy tmurphy is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Apopka Fl. USA
Posts: 56 tmurphy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to tmurphy
RE: managing users

i have a table in the database called groups and in the groups table i have:

g_name
g_admin
g_status
g_host
g_dbname
g_dbuser
g_dbpass

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > managing users


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway