0

Hi, all
I'm a newbe in php
My question is simple, but after 10 hours on the comp,I've got jammed
Please help on the correct syntax of echo ("<a href...

$ID[1]="Best Song"
$url[1]="http://localhost/cat_music/BS.php"

echo ("<a href='\".$url[1].'\">".$id[1]."</a>");

doesn't work
Installed PHP 5.2.5

TIA

2
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by TommyBs
0

Tnx, Tommy,
After rest of 1 hour I've got it

echo ("<a href='$URL[1].'\">".$ID[1]."</a>");

0

No probs, just a little tip try I find it easier to stick to one style of quotes. For instance i normally always tend to use double quotes " and when need be escape them, I think your problem might have been avoided if you'd stuck to one convention as oppossed to mixing single and double quotes and concatenating some and not others.

Hope that makes sense.

Good luck

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.