Jump to content

AWG Incentives

Mark F

Recommended Posts

Could someone please help me set up the Apex Web Gaming Incentives script?

The example on the website is as follows, though I am not completely sure what to do.


//////// Example Post-Back Script for Apex Web Gaming

// include database connection here

// this is the variable we pass back to you that
// contains the value you passed to us with the vote link
$user = $_POST['i'];

// check if the user has voted
$check_voted = mysql_fetch_array(mysql_query("SELECT vote FROM users WHERE username = '$user'"));
if ($check_voted[0] == 0) { // if they haven't voted
   // credit the user for voting, like giving +100 money as in the example
   mysql_query("UPDATE users SET money = money + 100, vote = '1' WHERE username = '$user'");


Does anyone actually use this incentives method, or are people using alternatives?

If I cannot get this to work, I have nearly finished an embedded script.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...