Assistance needed with code syntax

Hi all,

I am having a problem with this code [attached below]:

No errors but the text on the button coming out is:

class="button (which is part of the code) ... instead of "view" which it get's from the table.

Hope you can help

thx

st3vo

echo '<a href="'.$row["button_link"].'" class="button viewbtn"><span>'.$row["button_text"].'</span></a>';

Open in new window

ST3VOAsked:
Who is Participating?
 
Ryan ChongConnect With a Mentor Commented:
try this:

echo "<a href='".$row["button_link"]."' class='button viewbtn'><span>".$row["button_text"]."</span></a>";
0
 
agamalCommented:
you code working fine ... if you can post the complete code
0
 
ST3VOAuthor Commented:
Works great! Thanks a lot!!! :o)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.