Jump to content
MakeWebGames

Recommended Posts

Posted

I've created a Hall Of Fame type page which displays users by their total amount of attacks done. The list is made using ORDER BY:

 $q =
           mysql_query(
                   "SELECT username,userid FROM users WHERE user_level != 0 ORDER BY atotal DESC,userid ASC LIMIT 20",
                   $c);

 

The problem is, I'm trying to set up a cron that rewards the players based on their position on that list. How do I go about doing this? Do I need to make a whole new table, and code out each rank reward by hand? Any insight would be appreciated.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...