My site: ipods.thefreegiftnetwork.com offers free gifts for people who complete offers such as trials and things. I want to make it so when someone completes an offer this reflects in the users area on my site. On revenue universe (an affliate program), it says when someone completes an offer it sends this back to my site:
http://ipods.thefreegiftnetwork.com/clo ... status=xxx".
campaign: The offer ID number of the offer being posted.
name: The name of the offer being posted.
sid: The userid that you passed to the campaign.
status: This will be either 1 or 2, for completed or not completed, respectively.
So I need to make a closedloop.php, so when revenueuniverse sends the command to it, it will update on my site.
I doubt anyone will know what im on about but its worth a try.. Thanks
How to make a closed loop reporting php?
Moderator: General Moderators
-
lucas20042004
- Forum Newbie
- Posts: 7
- Joined: Mon May 15, 2006 7:39 am
-
lucas20042004
- Forum Newbie
- Posts: 7
- Joined: Mon May 15, 2006 7:39 am
this is a simple version just to help you get started
Code: Select all
<?php
//this page will insert into database
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password') or die(mysql_error());
mysql_query("INSERT INTO database (`campaign`, `name`, `sid`, `status`) VALUES($_GET['campaign'], $_GET['name'], $_GET['sid'], $_GET['status'] )");
?>-
lucas20042004
- Forum Newbie
- Posts: 7
- Joined: Mon May 15, 2006 7:39 am