variable in HREF not working correctly I am trying to create a link in a Drupal views-view-fields.tpl that links to the original content but for some reason it's not working.  The code I have tried:

&lt;a href="&lt;?php $fields['path']-&gt;content; ?&gt;"&gt;Read more&lt;/a&gt;        


and

&lt;?php $link = $fields['path']-&gt;content;?&gt;
 &lt;a href="&lt;?php $link ?&gt;"&gt; Read more&lt;/a&gt;


as well as adding single quotes.  The above points the rendered link to the current page/ view.  When I echo $link_path i get /?q=node/1544 , which is correct.

I have also tried to create the URL by using 

$link = $GLOBALS['base_url'] . '/node/' . $node-&gt;nid;
&lt;a href="&lt;?php $link ?&gt;"&gt; more &lt;/a&gt;


The above shows the correct link when I echo it but, again in the rendered link it points to the current page/ drupal view.

What am I missing? I have to add that I only have about 3 months Drupal/PHP experience so still lots to learn.

Thanks :)
The secure alternative would be to use l() to generate the link.
In your current code, it's very likely that you've created a security problem.

l('More', $fields['path']-&gt;content) would be better.

But in answer to your original question. you are missing echo statement here

&lt;a href="&lt;?php echo $link ?&gt;"&gt; more &lt;/a&gt;