In the below code ‘resAvailability’ might be equal to 1 or 0. Is it possible to update this code in such a way that 1 produces ‘Yes’ and 0 results in ‘No’?
<?php foreach ($result as $row):?>
<tr>
<td><?php echo $row['resAvailability']; ?></td>
<?php endforeach;?>
This is called the ternary operator.