id is impractical, since each record has a id , if you have 200 records, you hypothetically would have to create 200 images for each one and create more images for the id s next, which makes it unfeasible. But by the content of the question, I believe that is not the intention (only the title supposes this).
What you can do is create an image for each type of response and upload it to the server:
When pulling the data from the bank, just check what type of response was given and load the respective image. It would look something like this:
<td> <center> <?php echo date('d/m/Y H:i:s', strtotime($row["data"])); ?> </center> </td>
<td> <center> <?php echo $row["nome"];?></center> </td>
<td> <center> <img src="<?php echo $resposta;?>.png" /></center> </td>
Where the variable $resposta
should have the value of " yes " or " no " coming from PHP according to the given answer, name of the image in HTML.