Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. amount is either 1, 5, 10, or 20
  2.  
  3. i need u to call this with the correct amount (above are the choices, u can do this based on the price of each token).
  4.  
  5. 1 token = 1.00$ , so if the price is 1.00, then the amount is 1, so u just add 1 to the tokens amount. (which i have below)
  6.  
  7. $newTokens = $tokens + $amount;
  8. $result = mysql_query("UPDATE loginDb SET tokens='$newTokens' WHERE id='$id'")
  9. or die(mysql_error());
  10. $result = mysql_query("SELECT * FROM loginDb WHERE id='$id'")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement