This code wont parse. What is wrong with it? echo "<a href=\".$row['divxurl'].\"><img src=\"download.gif\"></a>" PHP:
A couple of backslashes too many.. Try this: echo "<a href=".$row['divxurl']."><img src=\"download.gif\"></a>" Code (markup):
Well, there's lots of different ways to skin a cat. Personally I often go for the heredoc method, although you need to be careful about extraneous white space. echo <<<EOD <a href="{$row['divxurl']}"><img src="download.gif"></a> EOD; PHP:
You need the backslashes for it to echo the whole line Ill try that, thank you. Ive not seen this method before, I will give it a go.