Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8140633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T12:13:41+00:00 2026-06-06T12:13:41+00:00

I am trying to build a universal postback system for a GPT script and

  • 0

I am trying to build a universal postback system for a GPT script and well I am having just a bit of a problem.

I am not sure if what I am doing is allowed in PHP so that may be the problem, but this is what I got:

$ip = cleanQuery($_SERVER['REMOTE_ADDR']);
$getaffip = mysql_query("SELECT * FROM affiliates WHERE affip = '".$ip."' OR affip2 = '".$ip."' OR affip3 = '".$ip."' OR affip4 = '".$ip."'");
$affinfo = mysql_fetch_array($getaffip);

$affname = $affinfo['name'];
$campidi = $affinfo['campid'];
$subidi = $affinfo['subid'];
$ratei = $affinfo['rateid'];
$statusi = $affinfo['creditstatus'];
$credit = $affinfo['creditid'];
$reverse = $affinfo['reverseid'];

$subid = cleanQuery($_GET['$subidi']);
$rate = cleanQuery($_GET['$ratei']);
$status = cleanQuery($_GET['$statusi']);
$campid = cleanQuery($_GET['$campidi']);

what this means is it is pulling the variables that particular affiliate uses when they send the information to your postback, for example they would send this to the postback URL:

http://yoursite.com/postback/postback.php?campaignid=11546&yti=me&credit=1

the $affinfo fetches would pull the defined info that the particular affiliate sends like in the link above $subidi for the affiliate that posted it would be yti and $campidi would be campaignid, but the $_GET isn’t pulling that information. It works if I change it to $_GET['yti']; in this case, but that wouldn’t make it universal as all affiliates do not use the same variables when they send information to the postback script.

I am thinking that the $_GET doesn’t support the $values, so what would be my best route of making it get the right information, or do I just have some kind of typo here that I have overlooked?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T12:13:42+00:00Added an answer on June 6, 2026 at 12:13 pm

    Do not quote the keys if they are variables:

    $subid = cleanQuery($_GET[$subidi]);
    $rate = cleanQuery($_GET[$ratei]);
    $status = cleanQuery($_GET[$statusi]);
    $campid = cleanQuery($_GET[$campidi]);
    

    It would have worked if you had used double quotes instead of single, but that would be pointless and poor practice to needlessly quote variables. The variables would have been interpolated inside the double quotes, ultimately giving the result you were after.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying build an App Engine connected Android application and am having some problems
I'm trying build a MVC framework, but I'm confused about manage themes. Well... I
Trying to build sslsniff on a RHEL 5.2 system here. When compiling sslsniff on
I am trying to build a Universal binary on MacOSX with g++. However, it
I am trying to build MacOSX universal binaries (I need at least i386/ppc for
I am trying to build an universal application with Xcode 4. However, it seems
I'm trying build a regex that will replace any characters not of the format:
Trying to build a Metro app using Javascript and having issues with IndexedDb. I
Hi all Working on a universal build for an iphone/ipod/ipad app. I was trying
Im trying to build a small frame that displays an image. My problem is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.