Yes, by DBM I meant DataBase Manager :P
According to what I've been tought, a "database" is simply a set of data which in some way refer to each other. It could as well be i.e. a bunch of papers in an old archive. Whereas a DBM is a tool/system which handles (or manages) a database, i.e. MySQL or Oracle.
In those terms, I guess phpMyAdmin would be an... interface(?) or tool which uses a DBM (MySQL in this case).
Anyway, lets return to my problem 
I already have a way of selecting the missions randomly (although I did not use rand()). The problem I'm having is to remember those missions, perhaps by storing their IDs in another table or something. I havn't come up with a smart way, well any way actually, to do that.
Let me give an example scenario.
The first time a player opens the mission page, i pick lets say 3 random missions to display. If the player goes to another page, and then returns, he will still see the same 3 missions. Now lets say he does one of the missions, which takes some time, and then comes back to the mission page. Now there are only 2 missions left for him to do. If he does those aswell and then comes back to the mission page, it will just state that there are no more missions right now. The player will not get new missions until the next day, when 3 new missions will be randomly picked.
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
Last edited by lizciz; 11-25-2011 at 12:26 PM..
|