1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Please Help with Php, Ref points not showing

Discussion in 'BlackHat Lounge' started by nisdee, Jul 30, 2015.

  1. nisdee

    nisdee Regular Member

    Joined:
    Nov 16, 2014
    Messages:
    354
    Likes Received:
    122
    Location:
    Rainbow Land
    Hi, I've been pulling my hair out for 2 days, I am trying to implement php referral script into my website by ref points are not showing for some reason
    I have the same script on other website and it's working fine, idk what is the problem here

    Here is the part of the code which shows the points: (css is styled as a container and only thing it shows is what i write after echo "xxx", it won't show .$hits;

    <div class="tup-reward-level-left">
    <h2 class="headline">
    You now have
    <br><div class="user-points">


    <?
    echo $error;
    $select = "select * from cookie_ref where REF_val = '".$ref."';";
    $selectQuery = @mysql_query($select);
    $selectArray = @mysql_fetch_array($selectQuery);
    $hits = $selectArray['REF_hits'];
    echo "" .$hits;
    ?>

    </div><br>
    crew members
    </h2>
     
  2. nisdee

    nisdee Regular Member

    Joined:
    Nov 16, 2014
    Messages:
    354
    Likes Received:
    122
    Location:
    Rainbow Land
    Fixed, ignore this thread