[Solved] Condition inside table [closed]


Do you mean something like the following?

echo '<td>' . ($data['temperature'] < 5 ? 'Cold' : 'Warm') . '</td>';

The above uses the ternary operator as a contracted if/else within a table cell.

1

solved Condition inside table [closed]