es scheint als ob heute mal wieder der "brettvormkopftag" ist.
Hab nur nen simplen login mit mysql ohne sessions
das komische ist: hab zum test mal 3 user angelegt, beim 1 user funktionierts, bei den anderen kommt folgende meldung:
kein zugangkein zugang
Warning: Cannot add header information - headers already sent by (output started at ..../login/login.php:15) in ...login/login.php on line 13
sieht jemand den fehler?
Hab nur nen simplen login mit mysql ohne sessions
PHP:
<?php
include "dbconnect.php";
$sql="select * from user";
$result=mysql_query($sql);
$anzresult=mysql_num_rows($result);
for ($i=0;$i<$anzresult;$i++)
{
$rowresult=mysql_fetch_array($result);
if (($_POST['username']==$rowresult['username'])&&($_POST['passwort']==$rowresult['passwort']))
header("location:test.html");
else
echo "kein zugang";
}
?>
das komische ist: hab zum test mal 3 user angelegt, beim 1 user funktionierts, bei den anderen kommt folgende meldung:
kein zugangkein zugang
Warning: Cannot add header information - headers already sent by (output started at ..../login/login.php:15) in ...login/login.php on line 13
sieht jemand den fehler?