Ok...i have a page where people can sign up and they get entered into the database and i have a login script which logs them in.
<?php
include("style.css");
include("config.php");
$query= mysql_query("SELECT * FROM users WHERE username='$user' AND password='$pass'");
echo("<body background='background3.JPG'>");
echo("<center><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>");
if (!$query) {
echo("Wrong Username or Password.<BR>
Try again <a href='/game/login.php'>here</a>.");
} else {
if ($validate == 1){
$_SESSION['username']=$user;
echo("Game still in progress.");
} else {
echo("Sorry, we could not log into your account!");
}
}
?>
and it always comes up either wrong username/password or 'we could not log u in'
any help is appreciated 😃