[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 175
  • Last Modified:

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

0
ST3VO
Asked:
ST3VO
1 Solution
 
Ryan ChongCommented:
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now