Guest User

Untitled

a guest
Mar 3rd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. <?php
  2. session_start();
  3. include 'config.php';
  4. $username = $_POST['username'];
  5. $password = $_POST['password'];
  6. $sql = 'UPDATE account SET username = "$username", password = "$password" WHERE username=".$_SESSION['username']."';
  7. if ($conn->query($sql)){
  8. echo "done";
  9. }
  10. ?>
Add Comment
Please, Sign In to add comment