daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Jul 21st, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $ud_tag = $_POST['ud_tag'];
  3. $ud_email = $_POST['ud_email'];
  4. $ud_points = $_POST['ud_points'];
  5. $ud_referral = $_POST['ud_referral'];
  6. $ud_age = $_POST['ud_age'];
  7. $ud_rank = $_POST['ud_rank'];
  8. $ud_active = $_POST['ud_active'];
  9.  
  10. $location = "$location";
  11. $username = "sj";
  12. $password = "blah";
  13. $database = "sj_xbl";
  14. mysql_connect(localhost,$username,$password);
  15. @mysql_select_db($database) or die( "Unable to select database");
  16.  
  17. $query="UPDATE contacts SET tag='$ud_tag', email='$ud_email', points='$ud_points', referral='$ud_referral', age='$ud_age', rank='$ud_rank', active='$ud_active' WHERE tag='$ud_tag'";
  18. mysql_query($query);
  19. echo "Record Updated, <a href=\"index.php\">Click here to return</a>";
  20. mysql_close();
  21. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top