Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1. <?php
  2.  
  3. include("config.php");
  4.  
  5. $username = $_POST['username'];
  6. $password = $_POST['password'];
  7.  
  8. if($login)
  9. {
  10. $query = mysql_query("SELECT `adminlvl` FROM `uztykownicy` WHERE `username` = '$username'");
  11. $numrows = mysql_num_rows($query);
  12.  
  13. if(numrows!=0)
  14. {
  15. $row = mysql_fetch_array($query)
  16. }
  17. }
  18.  
  19. ?>
  20.  
  21. <title>Panel Admina - Logowanie</title>
  22. </head>
  23. <body>
  24. <form action = "adminlogin.php" method = "POST">
  25. <table>
  26. <tr>
  27. <td>
  28. <b>Username:</b>
  29. </td>
  30. <td>
  31. <input type = "text" name = "username">
  32. </td>
  33. </tr>
  34. <tr>
  35. <td>
  36. <b>Password:</b>
  37. </td>
  38. <td>
  39. <input type = "password" name = "password">
  40. </td>
  41. </tr>
  42. </table>
  43. <input type = "submit" name = "login" value = "Zaloguj">
  44. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement