Jump to content

Need help to setup a new Post Back


trizocy

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...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.