title: Concatenating HTML and PHP to make an image link
body: <p>I'm trying to make an image into a link using PHP and HTML. The main idea is to grab user's images and screen names from Twitter, then make the image into a clickable link to their profile by building the URL and adding their screen name on the end. But I get a error message:</p>
  
  <p>Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in C:\wamp\www\fyp\tweeter3.php on line 71.</p>
  
  <p>This is line 71 (it's part of a foreach loop):</p>
  
  <pre><code>&lt;?php echo "&lt;a href = ".$url"&gt;&lt;img src = ".$userImage." class = ".$class."&gt;&lt;/a&gt;"; ?&gt;
  </code></pre>
  
  <p>There's a syntax error in there I just can't pinpoint.
  These are my variables:</p>
  
  <pre><code>$userScreenName = $user -&gt; screen_name;
  $userImage = $user -&gt; profile_image_url;
  $class = "myImgClass";
  $url = "https://twitter.com/".$userScreenName;
  </code></pre>
  
  <p>Can you spot the error?</p>