index.php
<? include("head.php"); ?> <form method="post" action="login.php"> <input type="text" name="email" value="Wpisz E-mail" /><br /> <input type="password" name="pass" value="Wpisz Hasło" /><br /> <input type="submit" value="Wejdź" /> </form>
login.php
<?php if (!$email || !$pass) { include("head.php"); exit; } include("head.php"); $logres = mysql_num_rows(mysql_query("select * from players where email='$email' and pass='$pass'")); if ($logres <= 0) { exit; } else { } ?>
head.php
Problem - kiedy chcę się zalogować, nie ważne co wpiszę, to pokazuje mi się "Logowanie udane..." i mogę wchodzić do gry.