html - How to insert a link before php variable

Solution:
Your example isn't right. You meann this?
echo "<td><a href='http://website.com/".$sound['downloadlink']."'>Download/</a></td>";
There is alot of examples of concatenation here:
Answer
Solution:
How abt:
echo "<td><a href='http://website.com/" . $sound['downloadlink'] . "'>Download/</a></td>";
Answer
Solution:
Try not to echo HTML unless you have to. A better way is to echo variables inside HTML:
<td><a href="http://website.com/<?=$sound['downloadLink']?>">Download</a></td>
If you absolutely have to, you can do this:
echo "<td><a href='http://website.com/$sound[downloadLink]'>Download</a></td>";
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: http failure during parsing for
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.