PHP/MySQL question
Posted: Sun Mar 06, 2005 7:05 am
Hi,
I am working on an online soccer management game (kinda like championship manager) where the user can start a league, choose a team and play through seasons etc, and save their game so they can come back to it. Now I sort of have this working on the master DB, but I don't know how to go about making a copy of the DB for each user saved game as they create it.
Would there be any way of saving a copy of the DB to a file and then loading this when the user logs in to play and then saving back to file once they have finished? Either this or I guess I should be able to create a copy of the DB as another DB, but don't know how to go about this.
I hope this makes sense. If anyone could give me any pointers then that would be great.
Cheers,
Chris
I am working on an online soccer management game (kinda like championship manager) where the user can start a league, choose a team and play through seasons etc, and save their game so they can come back to it. Now I sort of have this working on the master DB, but I don't know how to go about making a copy of the DB for each user saved game as they create it.
Would there be any way of saving a copy of the DB to a file and then loading this when the user logs in to play and then saving back to file once they have finished? Either this or I guess I should be able to create a copy of the DB as another DB, but don't know how to go about this.
I hope this makes sense. If anyone could give me any pointers then that would be great.
Cheers,
Chris