Database record changing in time?

Discussion in 'MySQL' started by archivedb, May 12, 2010.

  1. #1
    Hello!

    I'm really curious how it works in webgames.

    Let's say I'm having a row called "gold" in my MySQL database, and I want +1 gold every 10 minutes if "goldmines_number" is equal 1. When "goldmines_number" is 2 then I want +2 gold every 10 minutes etc.

    How to write something like this?

    Thanks a lot.
     
    archivedb, May 12, 2010 IP
  2. Chocolate Lime

    Chocolate Lime Active Member

    Messages:
    399
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Chocolate Lime, May 13, 2010 IP