I know it's possible, but I just can't get it working. In an old file I have a straight php coding doc where it's used and am now trying to mimic the resulting output.
I'm trying to get a result from a query in a specific color when it fits the bill ( if ($teamcaptain == $deelnemer) //if yes, we'll make the result green echo "<td class="achtergrondbottom">"; etc (((((SEE BELOW)))))) when the person ($deelnemer) also fits the $teamcaptain I want this one to be listed in different format, I dont care if it's only color or if it's a css. Hope there's someone able to help me here, thanks, Martin The Netherlands part of php code: do { ?> <tr class="laag2"> <?php $teamcaptain = strtoupper($row_rsCompetitie['tmcap']);echo $teamcaptain; $deelnemer = strtoupper($row_rsCompetitie['zoekcode']);echo $deelnemer;?> <?php if ($teamcaptain == $deelnemer) //if yes, we'll make the result green echo "<td class="achtergrondbottom">"; } ?> <td><?php echo $row_rsCompetitie['zoekcode']; ?></td> <td class="achtergrondgrijs"><?php echo $row_rsCompetitie['roepnaam']; ?></td> <td><?php echo $row_rsCompetitie['samennaam']; ?></td> <td><?php echo $row_rsCompetitie['handicap']; ?></td> <td><?php echo $row_rsCompetitie['tmnaam']; ?></td> <td><?php echo $row_rsCompetitie['tmklasse']; ?></td> <td><?php echo $row_rsCompetitie['tmpoule']; ?></td> </tr> <?php } while ($row_rsCompetitie = mysql_fetch_assoc($rsCompetitie)); ?> </table> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php