Advertisement
Guest User

Untitled

a guest
Jun 30th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. <?php
  2. $con = mysql_connect('localhost','root');
  3. if (!$con)
  4. {
  5. die('Could not connect: ' . mysql_error());
  6. }
  7. mysql_select_db("Coupons", $con);
  8.  
  9. $UserName = $_POST['UserName'];
  10. $Password = $_POST['Password'];
  11.  
  12. mysql_query("UPDATE Users Set User='$UserName' WHERE User=$UserName'");
  13.  
  14.  
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement