I need help with inserting php inside html. I have the below which causes me a javascript error.
The error being: Uncaught SyntaxError: missing ) after argument list. Can anyone help? Thanks
<a href="javascript:fin(<?php echo $character['addresses'][$i]; ?>) style="width:100%; height:100%;">
"some string", if your$character['addresses'][$i]is a string you didn't quote ithref=is missing the terminating double-quote character.href="..."and quote the php output