When i try log on it says it is wrong so i deleted the account and created a new one. Tried it again and it kept on saying the same. Then i tried Player1 and it worked. Can some one help me out?
Here is the auth page i called it checklgn.php
<?php
include_once 'connect.php';
session_start();
if (isset($_POST['submit']))
{
$player=$_POST['player'];
$password=$_POST['password'];
$player=strip_tags($player);
$password=strip_tags($password);
$query = "select name,password from players where name='$player' and '$password'";
$result = mysql_query($query) or die("Could not query players");
$result2 = mysql_fetch_array($result);
if ($result2)
{
$_SESSION['player']=$player;
echo "<big>Logged in successfully<br>";
echo "<A href='index.php'>Continue</a></big>";
}
else
{
echo "<big>Wrong username or password.<A href='login.php'>Try Again</a></big>";
}
}
?>
And here is the login page i called it login.php
<title>TEST LOGIN INFO</title>
<form method="POST" action="checklgn.php">
User Name <input type="text" name="player" size="21">
<br>
Password <input type="password" name="password" size="21" mask="x">
<br>
<input type="submit" value="Test" name="submit">
<br><br>Not Registered? <a href='register.php'>Register
If i have any errors please tell me
