Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 25th, 2011  |  syntax: PHP  |  size: 0.63 KB  |  views: 45  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3.     include "connectDB.php";
  4.     include "fbconfig.php";
  5.  
  6.     $invitations = count($_POST['ids']);
  7.     $dealerIDQry = mysql_query("SELECT group_detail_id FROM member_detail WHERE id=$uid");
  8.     $dealerIDfetch = mysql_fetch_array($dealerIDQry);
  9.     $dealerID = $dealerIDfetch[0];
  10.  
  11.     $friendInvites = "SELECT invite_friend_action FROM group_action_detail WHERE id =$dealerID";
  12.     $friendInviteCount = ($invitations * $friendInvites);
  13.  
  14.     $increment = mysql_query("UPDATE member_points SET current_points_total = current_points_total + $friendInviteCount WHERE member_detail_id =$uid");
  15.     echo $increment;
  16.    
  17.  
  18. ?>