OK, det fik løst mit problem, men den laver stadig \"fejl 500 intern server fejl\" kan i lige se på koden og si hvad der er galt, hvorfor laver den fejl 500
----kode----
<?php
if (isset($username)) {
if (! $URL) {
$text = \'Error\';
require(\"header2.php3\");
echo \"There has been an internal error. <br><br>There was a missing varible. <br><br>Please try again !!! If you continue ending up at this page mail Dea at <a href=\\\"mailto:morten_fangel@mail.dk\\\">morten_fangel@mail.dk</a>.\";
require(\"footer2.php3\");
}
else {
$typed_user = $username;
$typed_paswd = $paswd;
$db = mysql_connect(\"localhost\", \"pyrogames\", \"oeew18\");
mysql_select_db(\"pyrogames\", $db);
$query2 = mysql_query(\"SELECT username, paswd FROM forum_users WHERE username = \'$typed_user\'\");
$data = mysql_fetch_array ($query2);
$num_rows = mysql_num_rows($query2);
if ($num_rows == \'0\') {
$text = \'Error\';
require(\"header2.php3\");
echo \"Login Error. <br><br>No Such User.<br><br> Please try again !!! If you continue ending up at this page, mail Dea at <a href=\\\"mailto:morten_fangel@mail.dk\\\">morten_fangel@mail.dk</a>.\";
require(\"footer2.php3\");
}
$real_user = $data[0];
$real_paswd = $data[1];
if ($typed_user == $real_user && $typed_paswd == $real_paswd) {
setcookie (\"PGForumCookie\", \"$username\", 3600); //sætter en cookie til en time frem!
header(\"Location:
http://albert/FireStormBBS/\".$URL);
}
elseif ($typed_user !== $real_user OR $typed_paswd !== $real_paswd) {
$text = \'Error\';
require(\"header2.php3\");
echo \"Login Error.<br><br>Wrong Password or User. <br><br> Please try again !!! If you continue ending up at this page mail Dea at <a href=\\\"mailto:morten_fangel@mail.dk\\\">morten_fangel@mail.dk</a>.\";
echo \"<br><br>test data<br><br> typed user: $typed_user <br>real user: $real_user <br>typed password: $typed_paswd <br>real password: $real_paswd <br> num of rows: $num_rows \";
require(\"footer2.php3\");
}
}
}
?>
---/kode----
please hjælp, så falder der fler\' point af
Dea_PG