EasyCFM.COM ColdFusion Forums / Coding Help! / - or + when the users moves up or down

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: - or + when the users moves up or down

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts last

fre
04-29-2005 @ 11:41 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
New Member
Posts: 3
Joined: Dec 2004

I would like to show a - or + and how many places they moved up or down in the rankings. I really don't know where to start. This place is the BEST!!! Thanks in advance.

Thanks,
Seymour Mitchell
Commissioner
Fantasy Racing Empire, Inc.

Lola
04-29-2005 @ 1:22 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Senior Member
Posts: 363
Joined: Feb 2005

Well, what rankings are you talking about? What are you working on? What exactly is it that you are trying to do? Is this like a gaming ladder you are making or something? Explain a bit more, so I we can help you out.

fre
04-29-2005 @ 3:28 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
New Member
Posts: 3
Joined: Dec 2004

Yes it's a NASCAR fantasy game site (http://fantasyracingempire.com). I would like to show users how much they go up or down depending on the weeks points result. So, team xxx moved up +4 spots or team xxx dropped -6 spots. Hope this helps.

Thanks,
Seymour Mitchell
Commissioner
Fantasy Racing Empire, Inc.

nmiller
04-29-2005 @ 3:42 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Moderator
Posts: 773
Joined: Apr 2003

do you already have this data stored in a database or are you starting from scratch?  If it already exists, explain your data tables.

Nathan Miller
NM Consulting

Lola
04-29-2005 @ 4:19 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Senior Member
Posts: 363
Joined: Feb 2005

Ohhh, so this is like a ladder, simple, you store 2 columns.

Column 1: Current Rank
Column 2: Last Rank

Then you would do #lastrank-currentrank# to get the spots you moved up or down.

But, if you want to do it for the whole week, then you would probably have to do it a bit differently.


Website Designed and Developed by Pablo Varando.