Help with a little line of code

Dear Community,

I am having a little issue with my code that i have created here. I am trying to add a css class lable to my echo verible

Here is the code right now and it works fine;

[php]echo “<a href='file.php?module=action&update=”.$row_name[‘id’]."’>Text Here[/php]

Now here is what its like after what i want to do with it (but it doesnt work as expected!!)

[php]echo “<a href='file.php?module=action&update=”.$row_name[‘id’]."’>Text Here[/php]

Am i doing something wrong? any help on this little issue would be fab, thanks so much in advance. :wink:

Since your php string is enclosed in double quotes, any other double quotes in this string must be escaped with backslash. Here is what you need:
[php]echo “<a href='file.php?module=action&update=”.$row_name[‘id’]."’><span class=“label active”>Text Here[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service