Hopefully someone can help me with this php thanks!

Discussion in 'PHP' started by WharfeValley Systems, Nov 21, 2007.

  1. #1
    I need to add some tracking code to an affiliate link i have

    im not much good with php but i think the link in the php code is this

    "http://rss.api.ebay.com/ws/rssapi?FeedName=SearchResults&siteId=3&language=en-GB&output=RSS20&sacat=".$front->catid."&ftrt=1&fbd=1&sabdlo=$minbid&sabdhi=$maxbid&floc=1&saslop=1&fsop=$front->sort&fsoo=$front->fsoo&saslt=2&sacqyop=ge&from=R6&fss=0&sacur=0&afcj=".CJID."%26SID%3D".urlencode($sid)."&saslc=0&fcl=3&saaff=afcj&catref=C5&frpp=100&satitle=".urlencode($front->q)."&ftrv=1&fts=$srchdesc&saatc=3&saprclo=$minprice&saprchi=$maxprice&sascs=$bin
    
    ",
    
    );
    
    PHP:
    and i need to add this code to the end of it

    ?SID=<?PHP echo $arid;?>

    is it as simple as just adding it to the end?
     
    WharfeValley Systems, Nov 21, 2007 IP
  2. YIAM

    YIAM Notable Member

    Messages:
    2,480
    Likes Received:
    240
    Best Answers:
    0
    Trophy Points:
    280
    #2
    try this
    
    "http://rss.api.ebay.com/ws/rssapi?FeedName=SearchResults&siteId=3&language=en-GB&output=RSS20&sacat=".$front->catid."&ftrt=1&fbd=1&sabdlo=$minbid&sabdhi=$maxbid&floc=1&saslop=1&fsop=$front->sort&fsoo=$front->fsoo&saslt=2&sacqyop=ge&from=R6&fss=0&sacur=0&afcj=".CJID."%26SID%3D".urlencode($sid)."&saslc=0&fcl=3&saaff=afcj&catref=C5&frpp=100&satitle=".urlencode($front->q)."&ftrv=1&fts=$srchdesc&saatc=3&saprclo=$minprice&saprchi=$maxprice&sascs=$bin&SID=$arid
    
    ",
    
    );
    
    PHP:
     
    YIAM, Nov 21, 2007 IP
  3. serialCoder

    serialCoder Guest

    Best Answers:
    0
    #3
    sorry for the pm, its not meant for you :(

    if this is in a php line you can disregard the <?php ?> tags
     
    serialCoder, Nov 21, 2007 IP
  4. WharfeValley Systems

    WharfeValley Systems Active Member

    Messages:
    1,515
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    80
    #4
    cheers guy,

    i figured it out, the SID was already been set by the script so i had to change it where it was being created not in the link.
     
    WharfeValley Systems, Nov 21, 2007 IP