Dear Colleagues, I'm facing a certain difficulty in including a certain content within an echo, for example:
I have this conditional structure:
if ($row_usuario['id_relacionado'] != 0) {
echo = " ";
}else{
echo = "Não existe arquivo relacionado";
}
I need to insert the following DIV into the echo of the IF:
<div id="id_resultado"><a href="visualizar.php?id=<?php echo $row_usuario['id_relacionado']?>"><?php echo $idrelacionado['numero']?></a></div>
For the following reason, I would like that only if the id exists the link will appear.
Could someone give me strength?
Thank you in advance!