0

Hi, I am having trouble echoing something into a url.

The code I've got is:

<?php
$code = "kooks";
echo '<a href="http://website.com/'$code'">The Kooks</a>'; ?>

But I get the message: Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /hermes/web11b/b146/moo.3finking/unsignedgigs/test.php on line 3

Thanks for your help

3
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by gilgil2
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.