Click to See Complete Forum and Search --> : selection of different sever when loging in & reg


mitchell
04-10-2008, 06:23 AM
Hi, im just thinking of how this works, places such as http://www.inselkampf.com has different "servers" (which is basicly another sql database) of the game and was thinking of making other servers of my game. just wounderd how i can come about this in implimenting this process into login & reg. would it just be a IF $user['server'] != 1 then server one etc and puting the value on registration? just wounderd if someone can point me in the right direction of how to acheive this.

all the best,
Micthell

p.s. ill just be creating another table as the new "server"

stephan.gerlach
04-10-2008, 06:56 AM
I don't think you need a separate database.

You could have a table called Worlds or similar in which you enter The different games you have ie World1 world2 ect.

Then when a user registers you can assign each player a world id. That way you can for example list all the players in a world (simply by saying select * from players where world=1 or similar)

Hope it helps.