title: PHP embed html image as a link
body: <p>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:</p>
  
  <p>htmltest.php</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;
  &lt;?
     require("includes/conn.php"); //link to the database
  ?&gt;
  &lt;html&gt; 
  &lt;title&gt;HTML with PHP&lt;/title&gt;
  &lt;body&gt;
  
  &lt;?php
        echo  "&lt;a  href="pageone.php"&gt;&lt;img src="homelogo.jpg"  /&gt;&lt;/a&gt;";
  ?&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>That's my code. I get the following error:</p>
  
  <p>PHP Parse error:  syntax error, unexpected T_STRING, expecting ',' or ';' in /home6/dreamsm2/public_html/htmltest.php on line 11</p>
  
  <p>Can anyone tell me what I'm doing wrong? Any help would be appreciated.</p>