Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Blvd-Media Group Postback Script
- Support Contact: BlvdInstall@blvd-media.com
- Widget: RewardTool
- Script: Custom Script
- Postback Version: 1.0
- */
- $db_host = "localhost"; #Hostname Ex: localhost
- $db_username = ""; #Database username
- $db_password = ""; #Database password
- $db_database = ""; #Database name
- # DB connect
- mysql_connect($db_host, $db_username, $db_password);
- mysql_select_db($db_database);
- $subid = mysql_real_escape_string($_GET['SubId']); # Username of the user that earned the reward(s).
- $earn = "0.50"; # Amount that the user has earned.
- $query_add_credit = mysql_query("UPDATE [TABLE] SET [row=row=+]".$earn." WHERE uid='".$subid."'");
- if($query_add_credit) {
- echo "RewardTool® Crediting Success: ".$subid." earned ".$earn." points.";
- } else {
- echo "Error: RewardTool® Postback Failure: ";
- }
- mysql_close();
- ?>
Add Comment
Please, Sign In to add comment