I need to do a validation, if it's true goes to a link and if it's fake it goes somewhere else. my code is next.
<a href='<?php if($dado['st_nome'] =="FINALIZADO")
{echo "dashboard.php?link=17&id=<?php echo $dado["op_id"];?>";}
else{ echo '#';}?>'>
But it's coming back 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 that I can not identify.