Welcome Guest, Not a member yet? Register   Sign In
need help with table class
#2

[eluser]Jondolar[/eluser]
You can use CSS to style your rows. Create CSS styles like this:
.tdSYSTEM1 { color:red }
.tdSYSTEM2 { color:red }
.tdSYSTEM3 { color:blue } ...

Now, in your table, add the style and append the variable that displays the system field.
<tr class='td&lt;? echo $system; ?&gt;'><td>...

When each row is parsed, each <tr> tag will have a class that is specific to the value in your system variable. You'll need to have a css style for every unique "system" value in your db.


Messages In This Thread
need help with table class - by El Forum - 08-07-2009, 10:37 AM
need help with table class - by El Forum - 08-07-2009, 01:59 PM
need help with table class - by El Forum - 08-10-2009, 08:14 AM
need help with table class - by El Forum - 08-10-2009, 09:18 AM
need help with table class - by El Forum - 08-10-2009, 12:03 PM
need help with table class - by El Forum - 08-10-2009, 12:27 PM
need help with table class - by El Forum - 08-10-2009, 12:41 PM
need help with table class - by El Forum - 08-10-2009, 04:36 PM
need help with table class - by El Forum - 08-11-2009, 12:28 PM
need help with table class - by El Forum - 08-13-2009, 06:22 AM
need help with table class - by El Forum - 08-13-2009, 06:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB