sobe
05-02-2009, 10:48 PM
I am trying to experiment with what I can, and something I am currently stumped with, is making a scoring system.
If say, 12 points is as high as you can go, your opponent has 8. It is displayed under a "score" row in your database, and when presented on a page it displays, 12-8.
Simple enough. But, what I want to do, is make the "score" display as either green or red color depending on if the first number is great or less than the 2nd number. If it is greater than the second number, it would be green. If it is less than the first number, it displays as red.
If say, 12 points is as high as you can go, your opponent has 8. It is displayed under a "score" row in your database, and when presented on a page it displays, 12-8.
Simple enough. But, what I want to do, is make the "score" display as either green or red color depending on if the first number is great or less than the 2nd number. If it is greater than the second number, it would be green. If it is less than the first number, it displays as red.