Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- session_start();
- include'./include/config.php';
- $login = mysql_query("select * from users where (username = '" . $_POST['username'] . "') and (password = '" . md5($_POST['password']) . "'),$db);
- $rowcount = mysql_num_rows($login);
- if ($rowcount == 1) {
- $_SESSION['username'] = $_POST['username'];
- header("Location: acp.php");
- }
- else
- {
- header("Location: index.php");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement