0
I need to do a validation, if it’s true it goes to a link and if it’s fake it goes somewhere else. my code is following.
<a href='<?php if($dado['st_nome'] =="FINALIZADO")
{echo "dashboard.php?link=17&id=<?php echo $dado["op_id"];?>";}
else{ echo '#';}?>'>
But it’s returning to me
PHP Parse error: syntax error, unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in E:\home\gigaclima\Web\giga_proj\paginas\listas\listar_op.php on line 50
Something in the code is generating a conflict I can’t identify.