I have tried to echo the table fields one by one. But I can't echo the image field. My code is:
if ($data->Prophylaxis_Indicated == 1) {
echo "<td><span title='true_logo'> <img src='url('images/1-icon.png')' height='20' width='20'></span></td>";
} else {
echo "<td> <span title='true_logo'><img src='url('images/0-icon.png')'height='20' width='20'></span></td>";
}