Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. <?php
  2. include ("admin.php");
  3.  
  4. $userforchange = strip_tags($_POST['removeuserrightschange']);
  5. echo "$userforchange";
  6. $con = mysql_connect("localhost","root","");
  7. if (!$con)
  8. {
  9. die('Could not connect: ' . mysql_error());
  10. }
  11.  
  12. mysql_select_db("phplogin", $con);
  13.  
  14. mysql_query("UPDATE users SET admin = 'N'
  15. WHERE username = '$userforchange'");
  16.  
  17. ?>
  18.  
  19. <html>
  20. <form action='usermanagementremovelevel.php' method='POST'>
  21. User:<input type='text' name='removeuserrightschange'> <br>
  22. <input type='submit' value='Change Rights!' name='removechangerights'>
  23.  
  24. </form>
  25. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement