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

[eluser]jedd[/eluser]
If the following doesn't help, give me var_dump of one of your rows.

You said that it was SYSTEM that was one of RG, NET, EXCH, yes?

Did you want the whole row, or just one element? If it's the row, we'll need to move your CSS and the class= stuff here to the < tr >

But this might be enough to get you going. Instead of what you have now:
Code:
<td class="RG">&lt;?=$row['TAPESYSTEM']?&gt;</td>

.. try this:

Code:
echo "<td class=\"" . $row['TAPESYSTEM'] ."\">". $row['TAPESYSTEM'] ."</td>";

(I really hate shuffling in and out of PHP / HTML all the time, and usually write the kind of block you posted in PHP entirely - lots of echos, but it means I can better indent things (so I can identify loops etc) and consequently I find it faster to re-visit. I also recommend you avoid the short-tags for PHP, but again this is your call.


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