Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $ud_tag = $_POST['ud_tag'];
- $ud_email = $_POST['ud_email'];
- $ud_points = $_POST['ud_points'];
- $ud_referral = $_POST['ud_referral'];
- $ud_age = $_POST['ud_age'];
- $ud_rank = $_POST['ud_rank'];
- $ud_active = $_POST['ud_active'];
- $location = "localhost";
- $username = "sj";
- $password = "blah";
- $database = "sj_xbl";
- mysql_connect(localhost,$username,$password);
- @mysql_select_db($database) or die( "Unable to select database");
- $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'";
- mysql_query($query);
- echo "Record Updated, <a href=\"index.php\">Click here to return</a>";
- mysql_close();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement