The problem there are all the mismatching quote-tags.
If you open a string using a double-quote, PHP will close the string on the next double-quote. Same for single-quotes.
Consider this:
-
$var = "<a href="page.php">Linkage</a>";
-
You see the problem there?
PHP will open a string on the first double-quote, but then close it on the second, which is meant to be a part of the string, not the end of it.
So, the following text (page.php"...) will be executes as PHP code, which will fail with a parse error.
If you want to use double-quotes inside a string, the string must either start and end with a single-quote, or the extra quotes need to be escaped.
Like so:
-
$var = '<a href="page.php">Linkage</a>';
-
$var = "<a href=\"page.php\">Linkage</a>";
-
Both of these will work.
Now, when you add variables, like you do with your line, you need to close the string and add it using a dot, and then open it again. Like:
-
$var = '<a href="'. $url .'">'. $label .'</url>';
-
Here the double-quotes are a part of the string, and all the single-quotes either close or open a string.
You can inject variables directly into a double-quote string, but lets no complicate the matter further.