SHARE
TWEET

Untitled

a guest Jun 19th, 2017 38 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if ($_POST['request']=="\$10 Prepaid Card"){
  2.     $deduct = 200; }
  3. elseif ($_POST['request']=="\$20 Prepaid Card"){
  4.     $deduct = 300; }
  5.     elseif ($_POST['request']=="\$50 Prepaid Card"){
  6.     $deduct = 900; }
  7.     elseif ($_POST['request']=="£20 Prepaid Card"){
  8.         echo "20";
  9.     $deduct = 400; }
  10.     elseif ($_POST['request']=="£50 Prepaid Card"){
  11.     $deduct = 960; }
  12.     elseif ($_POST['request']=="€20 Prepaid Card"){
  13.     $deduct = 400; }
  14.     elseif ($_POST['request']=="€50 Prepaid Card"){
  15.     $deduct = 900; }
  16. else { $deduct = 0;}
  17.  
  18. $update = mysql_query('UPDATE members SET points = (points - '.$deduct.') WHERE id = "'.$_POST['id'].'"')
  19. or die(mysql_error());
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top