Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.72 KB | None | 0 0
  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 = "localhost";
  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. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement