Find Jobs
Hire Freelancers

Blog on wix.com

£20-250 GBP

Closed
Posted over 5 years ago

£20-250 GBP

Paid on delivery
I want to include an offer wall on my website using the code below. <iframe src="[login to view URL]" frameborder="0" width="860" height="2400" ></iframe> I need to replace the "YOUR_USER_ID" with a unique user id generated when users sign up. I will also need help with the postback setup- Example of post back code: Very Important: Our system expects a "1" (number one) without quotes as the sole response to our Postback request. Sample PHP Postback Script <?php /* * Postback Example - [login to view URL] * */ $your_app_key = "your_app_key_find_it_in_Integrate_section_of_your_account"; // Your database credentials. define("MYSQL_HOST", "localhost"); define("MYSQL_PORT", "3306"); define("MYSQL_DB", "your_db"); define("MYSQL_TABLE", "your_table"); define("MYSQL_USER", "username"); define("MYSQL_PASS", "password"); $mysqli = new mysqli(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DB); if ($mysqli->connect_errno) { echo "Failed to connect to MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error; } // Get Postback variables, for a complete list of list of variables, please go to [login to view URL] Postback tab $transaction_id = urldecode($_GET["transaction_id"]); $offer_id = urldecode($_GET["offer_id"]); $offer_name = urldecode($_GET["offer_name"]); $amount = urldecode($_GET["amount"]); //This is what your user is paid in your virtual currency, for example 300 coins $virtual_currency = urldecode($_GET["virtual_currency"]); // This is simply the name of the currency of your app $userid = urldecode($_GET["userid"]); // $signature = urldecode($_GET["signature"]); $payout = urldecode($_GET["payout"]); $subid1 = urldecode($_GET["subid1"]); $subid2 = urldecode($_GET["subid2"]); $subid3 = urldecode($_GET["subid3"]); //Check the signature $my_signature = md5($transaction_id."/".$offer_id."/".$your_app_key); if($my_signature != trim($signature)){ //Signatures don't match echo "0"; exit(0); } //Possible make some other checks like if userid is actually a user in your system... //then simply award the coins to your user $sql = "UPDATE ".MYSQL_TABLE." SET coins=coins+".$mysqli->real_escape_string($amount)." WHERE userid = ".$mysqli->real_escape_string($userid); $result = $mysqli->query($sql); if($result){ echo "1"; }else{ echo "0"; } exit(0); ?> This post back will then affect the users balance.
Project ID: 17647521

About the project

7 proposals
Remote project
Active 5 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
7 freelancers are bidding on average £147 GBP for this job
User Avatar
hi there ! i am expert of core php and mysql and surely provide your proper solution , please start chat session as i need to ask something about your project . thanks Muhammad imran
£244 GBP in 6 days
4.9 (249 reviews)
7.1
7.1
User Avatar
I have worked on similar project before where customers would complete survey and watch adverts and in return would receive credits on the website. I have a great experience with mysql database/php and I will write all of code in mvc to ensure clean code is written.
£23 GBP in 5 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED KINGDOM
United Kingdom
0.0
0
Member since Aug 26, 2018

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.