I'm trying to incorporate a link in a new element of my page. Here is my code:
However, when loading the page up, nothing is displayed. If i remove the link aspect it all shows up fine, just with no link obviously. Am i using a wrong set of " or ' in my code?
Thanks
Code:
echo "var marker = createMarker(point, '" .addslashes($row['city']) . ", " . addslashes($row['state_name']) . "<a href='http://www.ihatemyroommate.net/?id=$id'>View</a>" . "');\n";
However, when loading the page up, nothing is displayed. If i remove the link aspect it all shows up fine, just with no link obviously. Am i using a wrong set of " or ' in my code?
Thanks