Conditional formatting for PHP repeat region
Hi
I have a repeat region displaying a recordset. I would like to apply some form of conditional formatting if a result meets a certiain condition. In my code below, I would like the 'onsched' field to display according to a specific class if the result is less than 0:
<?php do { ?>
<td><?php echo $row_RSonsched['name']; ?></td>
<td><?php echo $row_RSonsched['predcurrent']; ?></td>
<td><?php echo $row_RSonsched['Emerging_Level']; ?></td>
<td><?php echo $row_RSonsched['onsched']; ?></td>
</tr>
<?php } while ($row_Recordset2 = mysql_fetch_assoc($Recordset2)); ?>
Being new to PHP, is there any way I can have the class '.clsgood' apply if the value of ['onsched'] is less than 0?
Many thanks for your help in advance
