Need to fix this code to work as an HTML link

Discussion in 'PHP' started by mattbf, Jul 24, 2010.

  1. #1
    Hi,

    I need some help fixing this code, it's very minor, to show up as a hyperlink in HTML:

    Right now it's:

    http://www.webmastersmarketplace.com/marketplace/viewlisting.php?listing=".$listingresult_Recordset1["listing_ID"]."
    Code (markup):
    How would I wrap <a href> tags around it to make it work?
     
    mattbf, Jul 24, 2010 IP
  2. Wink

    Wink Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    $link = "<a href='http://www.webmastersmarketplace.com/marketplace/viewlisting.php?listing={$listingresult_Recordset1["listing_ID"]}'>Link</a>";
    PHP:
     
    Wink, Jul 24, 2010 IP
  3. mattbf

    mattbf Active Member

    Messages:
    426
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    85
    #3
    That worked, thank you!
     
    mattbf, Jul 24, 2010 IP