|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Alternating Text Colours
|
|
#2
|
|||
|
|||
|
RE: Alternating Text Colours
|
|
#3
|
|||
|
|||
|
RE: Alternating Text Colours
Quote:
Ooops, I will try to explain. You did this: Which will always return true ( greater than 0 ) ... for a better explanation start here http://www.php.net/manual/en/language.types.boolean.php The code that I sent you will use the color 000066 on false and CCCCCC on true. For more information on the % operator see http://www.php.net/manual/en/langua....arithmetic.php Hope that helps. |
|
#4
|
|||
|
|||
|
RE: Alternating Text Colours
For clarification, true is any non-zero value ( greater than or less than ). Not just greater than as I previously wrote.
My apologies. |
|
#5
|
|||
|
|||
|
RE: Alternating Text Colours
Thanks for the help evilive..although, the code you gave me, didnt quite work...just for the record, i hate to change this:
to this just had to put the echo something inside the while loop |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > Alternating Text Colours |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|