0
Dear Colleagues, I am faced with 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 IF echo:
<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 wish that only if the id exists will the word lynched appear.
Someone could give me a boost?
Thanks in advance!
Good that it worked. I’ve never seen echo with =, it’s a sign of type assignment on "$var = x". echo is followed straight by what will be "echoed" in quotes. Don’t forget to accept the answer to help other users. Good luck there.
– Daniel Lemes