Cerrado

Blog on [login to view URL]

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.

Habilidades: HTML, Javascript, MySQL, PHP, Arquitectura de software

Ver más: blog freecellphonechoices com, blog informiv com, blog webqem com barcode, drupal multi user blog wordpress com, import joomla wix com, moving blog wordpress com drupal seo, software wix com, spreadshirt com store wix com, submit blog today com, wix com promoion code, wix com redriect nonflash users, blog sina com, stanacard com balance check, dofollow blog dot com, wix com html, wix com weebly, widget wix com, i am seller i wants to know the buyer of car engines in dubai find buyer, mi blog maluamarillo wix com web design studio es, raulfarma29 wix com e blog

Información del empleador:
( 0 comentarios ) United Kingdom

Nº del proyecto: #17647521

9 freelancers están ofertando el promedio de £159 para este trabajo

sharpMind007

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 en 6 días
(221 comentarios)
6.9
widadsaghir1993

Hello sir. As a web developer, i'm glad to see your project. Please check my profile, perhaps you can see my good skills. I want to discuss for your project in detail. Hoping your good message. Regards

£250 GBP en 3 días
(64 comentarios)
6.6
markninja

Hi, Hope you are doing great. I will create blog on wix.com. Can you share more details please? Kindly check: Recent wix websites developed by me: [login to view URL] [login to view URL] Más

£150 GBP en 3 días
(45 comentarios)
6.1
AdhamSoft

{ Your Needs are About to Be Done } [login to view URL] This link is a system for Multi Vendor Click link as a sample of what I created { Your Needs are About to Be Done Más

£21 GBP en 3 días
(34 comentarios)
5.6
wpmonsters

Let me introduce WordPress Monsters, we aim at building the best development products and often succeed in doing that. We have vast experience working with PHP & PHP frameworks, WordPress & Woocommerce, Opencart, Mage Más

£350 GBP en 3 días
(21 comentarios)
5.3
naishodayo

how are you,sir? I am a professional developer who has rich experience in this field. If you contact me, you and i will all be happy. Thank you for your reply in advance. Blog on [login to view URL] HTML, Javascript, MySQL, PHP Más

£150 GBP en 1 día
(1 comentario)
3.4
navdhajoshi

Hi There, Seasons Greeting!! I have gone through with the project disclaimer and explanation, you have mentioned thoroughly. I take pride to state that this comes completely in my expertise area and it can be execute Más

£77 GBP en 3 días
(4 comentarios)
1.1
sumansahu789

I have created a wide range of websites using PHP, WordPress JavaScript and MySQL including one's for startup companies like social portals, content management systems. Please have a look at below samples to check my Más

£166 GBP en 5 días
(0 comentarios)
0.0
mui2500

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 Más

£23 GBP en 5 días
(0 comentarios)
0.0