Page 4 of 4 FirstFirst 1234
Results 46 to 53 of 53

 

Thread: Hiding Affiliate Link URL's?

  1. #46
    D-Mac's Avatar
    Registered User

    Status
    Offline
    Join Date
    Mar 2004
    Location
    Surrey
    Posts
    1,353
    Thanks
    29
    Thanked 49 Times in 44 Posts


    Change link.php to this:


    <?php

    include ("db_connect.php"); // include your code to connect to DB.

    $sql="SELECT * FROM test WHERE id='".$_GET['product']."'";
    $result= mysql_query($sql);
    $data=mysql_fetch_assoc($result);
    if ($data['url']){


    echo "This is your afflink ".$data['link'];
    exit;
    }
    else
    {
    echo "something went wrong!";
    }
    ?>


    Then click one of your images, and see what message, if any is displayed.
    Last edited by D-Mac; 05-12-08 at 09:36 PM. Reason: hmm, how do you display code boxes on here?
    David Macfarlane
    Cost effective web development. Codewise

  2. #47
    Registered User

    Status
    Offline
    Join Date
    Aug 2008
    Posts
    39
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Sorry to get you into this D-Mac but still the same thing happen opens a blank page

    However as the same include file "db_connect.php" pulls all the other info that shows on the page I can't see how that same file is the problem?

    I'm trying to use the row id which has a column header if "id" as a substitute for the affiliate link which has a column header "link". I thought maybe I have the wrong info in some of the queries?

    Just can't understand why it is showing up a blank page despite your changes

  3. #48
    D-Mac's Avatar
    Registered User

    Status
    Offline
    Join Date
    Mar 2004
    Location
    Surrey
    Posts
    1,353
    Thanks
    29
    Thanked 49 Times in 44 Posts
    Hey, no probs, my wife is watching the box, so I am sitting here with the laptop :blush

    It seems like php error reporting is disabled on your server, so it hard to know what's wrong without seeing the exact code. It might be a syntax error in your code. E.g. a missing semi-colon.

    Can you post the exact code here for the whole link.php file
    David Macfarlane
    Cost effective web development. Codewise

  4. #49
    Registered User

    Status
    Offline
    Join Date
    Aug 2008
    Posts
    39
    Thanks
    2
    Thanked 2 Times in 2 Posts
    I'm a celebrity's got a lot to answer for!

    the code is as I showed earlier

    PHP Code:
    <?php

    include ("db_connect.php");   // include your code to connect to DB.

    $sql="SELECT * FROM test WHERE id='".$_GET['Product']."'";
    $resultmysql_query($sql);
    $data=mysql_fetch_assoc($result);
    if (
    $data['link']){
    $sql="INSERT INTO links VALUES ('".$_GET['Product']."','otherdata','ipaddress')";
    $resultmysql_query($sql);
    header("Location: ".$data['link']);
    exit;
    }
    else
    {
    //Your failure code
    }
    ?>

  5. #50
    D-Mac's Avatar
    Registered User

    Status
    Offline
    Join Date
    Mar 2004
    Location
    Surrey
    Posts
    1,353
    Thanks
    29
    Thanked 49 Times in 44 Posts
    capital 'P' on Product should be a lowercase 'p'

    There are 2 instances of this.

    If this doesn't work, change the lowercase 'p' in your href to a 'P'
    David Macfarlane
    Cost effective web development. Codewise

  6. #51
    Registered User

    Status
    Offline
    Join Date
    Aug 2008
    Posts
    39
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Well, I'm afraid the results are the same, I appreciate all your efforts tonight but it seems a little more complicated than originally expected.

    I'm off to bed as my brain hurts and I've had a couple of beers and maybe fresh eyes tomorrow will pick something up

    thanks again

  7. #52
    Travel Squared

    Status
    Offline
    Join Date
    Sep 2006
    Location
    Cambridge
    Posts
    891
    Thanks
    119
    Thanked 66 Times in 42 Posts
    Affiliate Citizen
    Holiday Reviews & Travel Deals || Travel Merchants: Please contact me if you have special offers or codes

  8. #53
    Registered User

    Status
    Offline
    Join Date
    Aug 2008
    Posts
    39
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Hi Dave,

    thanks for spending the time to comment.

    I looked at this previously, as it's mentioned in lots of blogs, but it's not relevant for large amounts of links being pulled from data feeds.

    thanks

Page 4 of 4 FirstFirst 1234


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Euroffice April Affiliate Newsletter & Bonus
    By vince@euroffice in forum TradeDoubler
    Replies: 0
    Last Post: 10-04-07, 05:57 PM
  2. Euroffice April Affiliate Newsletter & Bonus
    By vince@euroffice in forum Paid On Results
    Replies: 0
    Last Post: 10-04-07, 05:56 PM
  3. Affiliate HealthCheck launch
    By affiliatehealth in forum Affiliate Marketing Lounge
    Replies: 0
    Last Post: 01-03-07, 02:18 PM
  4. Affiliate Window's GoZing affiliate link goes to Ciao instead
    By Azam.net in forum Affiliate Window & buy.at
    Replies: 11
    Last Post: 09-09-05, 10:03 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2