Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include("config.php");
- $username = $_POST['username'];
- $password = $_POST['password'];
- if($login)
- {
- $query = mysql_query("SELECT `adminlvl` FROM `uztykownicy` WHERE `username` = '$username'");
- $numrows = mysql_num_rows($query);
- if(numrows!=0)
- {
- $row = mysql_fetch_array($query)
- }
- }
- ?>
- <title>Panel Admina - Logowanie</title>
- </head>
- <body>
- <form action = "adminlogin.php" method = "POST">
- <table>
- <tr>
- <td>
- <b>Username:</b>
- </td>
- <td>
- <input type = "text" name = "username">
- </td>
- </tr>
- <tr>
- <td>
- <b>Password:</b>
- </td>
- <td>
- <input type = "password" name = "password">
- </td>
- </tr>
- </table>
- <input type = "submit" name = "login" value = "Zaloguj">
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement