How do I go about using an image as a link in php? I have never put two html elements together in one echo so it\'s kinda new for me. Here\'s my code:
htmltest.php
Change the line to:
echo '';
OR
echo "";
The problem, as the error somewhat suggests, is that the PHP interpreter can't figure out where your string is supposed to start and end. Using \"
escapes the quotes. Using '
around the string gives a unique string delimiter around the string, so you are free to use double quotes inside.
Note, if you needed both single and double:
echo '';