1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Quick PHP/XML code fix - $5 straight to your PayPal / Moneybookers

Discussion in 'Programming' started by t0mb, Aug 9, 2010.

  1. #1
    Here's what I have:

    $rssfeed .= '<title>' . $Title . '</title>';
    $rssfeed .= '<description>' . $Description . '</description>';
    $rssfeed .= '<link>' . $ID . '</link>';

    I need <link> to use URLs with this structure - http://www.url.com/View-This.php?ID=$ID (Where $ID is inserted from the database).

    How would I include the relative path into the code below?

    $rssfeed .= '<link>' . $ID . '</link>';

    $5 to the first person who gets it to work!

    Thanks,

    Tom
     
    t0mb, Aug 9, 2010 IP
  2. HuggyEssex

    HuggyEssex Member

    Messages:
    297
    Likes Received:
    4
    Best Answers:
    2
    Trophy Points:
    45
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Just use this code,

    
    $rssfeed .= '<link>http://www.url.com/View-This.php?ID=' . $ID . '</link>'; 
    
    Code (markup):
    My paypal is if you wish to send me some more money for it
     
    HuggyEssex, Aug 9, 2010 IP
  3. whitesky82

    whitesky82 Active Member

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    above is the correct solution
     
    whitesky82, Aug 9, 2010 IP
  4. t0mb

    t0mb Active Member

    Messages:
    1,116
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    Hey Huggy, Thanks very much!! $5 coming your way in a second...

    Cheers,

    Tom
     
    t0mb, Aug 9, 2010 IP
  5. HuggyEssex

    HuggyEssex Member

    Messages:
    297
    Likes Received:
    4
    Best Answers:
    2
    Trophy Points:
    45
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    Thanks,

    Glen
     
    HuggyEssex, Aug 9, 2010 IP