Jump to content

Recommended Posts

Hello guys, im new here  :shy:, hope i meet great and friendly people here.

Anyway, i need some help with a new Post back setup and hope anyone here could help me.

 

This old script work but have problem to put in the new post back, here is it.

 

include("includes.php");
$subid = $_REQUEST['subid'];
$survey = $_REQUEST['survey'];
$earn = $_REQUEST['earn'];
$pdtshow = $_REQUEST['pdtshow'];

//$query_getuserid = mysql_query("SELECT id from members WHERE username= '".$subid."'") or die(mysql_error());
//foreach(mysql_fetch_array($query_getuserid) as $userid);

$query_checkRef = mysql_query("SELECT referral_ID from members WHERE username= '".$subid."'") or die(mysql_error());
foreach(mysql_fetch_array($query_checkRef) as $ref_id_user);
if ($ref_id_user>=1)
{
mysql_query("UPDATE members SET points=points+".$pdtshow." WHERE username='".$subid."'");
mysql_query("UPDATE members SET completed_surveys=completed_surveys+1 WHERE username ='".$subid."'");
mysql_query("UPDATE members SET points=points+".$refer_points." WHERE id ='".$ref_id_user."'");
mysql_close();
echo "Success: ".$subid." earned ".$pdtshow." points\n and is referred by".$ref_id_user;
}else {
mysql_query("UPDATE members SET points=points+".$pdtshow." WHERE username='".$subid."'");
mysql_query("UPDATE members SET completed_surveys=completed_surveys+1 WHERE username ='".$subid."'");
mysql_close();
echo "Success: ".$subid." earned ".$pdtshow." points\n and is referred by nobody";
} 

?>

 

Here is the new postback i should insert.



cvid     
ip     
name   
status  
sid 

And it should seem like this:
http://example.com/postback.php?txid=1234&ip=123.123.123.123&name=Unlocker+#1&status=1&sid=abc

 

Can anyone help me out :)?

Maybe insert it for me and send it over to me  :P

 

-Trizocy

Link to comment
https://forums.phpfreaks.com/topic/237769-need-help-to-setup-a-new-post-back/
Share on other sites

  • 3 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.