# Conditional Formatting

**URL:** <https://forum.kirupa.com/t/conditional-formatting/176896>\
**Category:** programming\
**Created:** [January 27, 2006, 8:05pm UTC](https://forum.kirupa.com/t/conditional-formatting/176896 "2006-01-27T20:05:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RaRdEvA](https://avatars.discourse-cdn.com/v4/letter/r/ed8c4c/32.png) [@RaRdEvA](https://forum.kirupa.com/u/RaRdEvA)\
**Post date:** [January 27, 2006, 8:05pm UTC](https://forum.kirupa.com/t/conditional-formatting/176896/1 "2006-01-27T20:05:02Z")

</div>

Hi everyone, i have been looking for this in several places and still no luck. What i want is the ASP document to display different colors depending on the value loaded from the database.

I have a table in wich i ask the database for a value wich is the number of posts that that person has. Now i want that number to be displayed in a different color depending on the value:

1-5 = Blue  
6-10 = yellow  
11-15 = orange  
16+ = Red

To be honest i am not programmer or developer, i guide myself with tutorials that i find on the web, the only tuts i have found are related to Grids.

I hope somebody can help me with this, seriously, i have been 2 days trying to find how to do it.

Thanks in Advance

:ogre: \<- Is Cool 😃
