Cần Giúp đỡ backpost BLVD

ffood

Newbie
Joined
Dec 3, 2013
Messages
10
Reactions
3
MR
0.000
Đây là code của em
<?php
/*
* Blvd-Media Group Postback Script
* Support Contact: [email protected]
* Widget: RewardTool
* Script: MyVoucherGeek
* Postback Version: 1.0.2b
*/

// Include Configuration & DB Connection
include("config.php");
include("includes.php");

$bmgpass = "YOURPASSWORD"; // Your Blvd-Media Password

// Authenticate Session via Blvd-Media Password
if (($bmgpass == $_GET['Validate']) || ($bmgpass == "YOURPASSWORD")) {
$subid = mysql_real_escape_string($_GET['SubId']); // Username of the user that earned the reward(s).
$earn = mysql_real_escape_string($_GET['Earn']); // Amount that the user has earned.

$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+".$earn." 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 "RewardTool&reg; Crediting Success: ".$subid." earned ".$earn." points\n and is referred by".$ref_id_user;
}
else
{
mysql_query("UPDATE members SET points=points+".$earn." WHERE username='".$subid."'");
mysql_query("UPDATE members SET completed_surveys=completed_surveys+1 WHERE username ='".$subid."'");
mysql_close();
echo "RewardTool&reg; Crediting Success: ".$subid." earned ".$earn." points.";
}
}
else {
echo "RewardTool&reg; Error: Validation Not Accepted";
exit;
}
?>

Nhưng khi up lên thì nó hiện 1 màn hình trắng với dòng chữ :"Unknown column 'referral_ID' in 'field list'"
Ai biết xin giúp mình với ạ.
 

Announcements

Today's birthdays

Forum statistics

Threads
427,565
Messages
7,212,849
Members
179,817
Latest member
noithatnhadepuma
Back
Top Bottom