For id is unviable, since each record has a id, if you have 200 records, hypothetically you would have to create 200 images for each and create more images for the ids vindouros, which makes it unviable. 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 response type and go up to the server:
When pulling the database data, just check what kind of answer was given and load the respective image. It would be 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
shall have the value of "yes" or "not" coming from PHP according to the answer given, and that will complete the image name in HTML.
This depends a lot on how the database structure was made, if used
BOLEAN
(True and False) can use this parameter in the HTML generated dynamically by PHP: ;<img src="<?php echo $variavel_do_resultado_do_db_referente_a_pergunta; ?>.png" alt="<?php echo $variavel_do_resultado_do_db_referente_a_pergunta; ?>" />
But without knowing the code or structure of the DB no chance of writing a clearer example than this.– RpgBoss
It would be a kind of quiz?
– Valdeir Psr
right, as if it were a quiz
– Joao Hauptmam
I am not using BOLEAN, I am using the basic name structure: varchar, data:timestamp, etc
– Joao Hauptmam
in the table: <td> <center> <?php echo date(’d/m/Y H:i:s', strtotime($Row["data"]); ? > </center> </td> <td> <center> <?php echo $Row["name"];? ></center> </td>
– Joao Hauptmam