Forums
This topic is locked
How to change colors dinamically
Posted 23 Apr 2003 11:05:22
1
has voted
23 Apr 2003 11:05:22 Ricardo Ribeiro posted:
Hi...I would like to change colors in a page of text contained in a DB field if according to the status of a YES/NO field, in the same DB.
Any ideas?
Replies
Replied 23 Apr 2003 12:21:16
23 Apr 2003 12:21:16 Julio Taylor replied:
what language are you using?... you can try something like
var1 = "#FFFFFF"
var2 = "#000000"
if field = 1 then print var1 else print var2
somthing like that, inside the <font color="<code>"> tag will work.
if you're using PHP then io can wrtie you a script.
------------------------
Julio
PHP | MySQL | DWMX
ICQ: 19735247
MSN:
var1 = "#FFFFFF"
var2 = "#000000"
if field = 1 then print var1 else print var2
somthing like that, inside the <font color="<code>"> tag will work.
if you're using PHP then io can wrtie you a script.
------------------------
Julio
PHP | MySQL | DWMX
ICQ: 19735247
MSN: