Jeg har problemer med min loginok.php siden
Jeg har det problem med min kode at når jeg logger ind, så kommer loginok bare frem uden noget tekst.Den kommer først rigtigt når jeg opdatere loginok siden...
Håber i kan hjælpe mig....
<?
include("inc/sql.php");
?>
<meta http-equiv="Page-Enter" content="blendTrans(Duration=1)">
<meta http-equiv="Page-Exit" content="blendTrans(Duration=1)">
<html>
<?
if (!$id) {
$kryppassword=md5($password);
$ukrypteret = $password;
$select_logincheck = mysql_query("SELECT id,kryppassword,room FROM users WHERE(username='$username')");
$row_logincheck = mysql_fetch_array($select_logincheck);
if ($kryppassword!=$row_logincheck[kryppassword]) {
include("inc/header.php");
print "Forkert brugernavn eller password!";
include("inc/footer.php");
exit;
} else {
if ($login) {
$id=$row_logincheck[id];
session_register(id);
session_register(kryppassword);
$valign="middle";
mysql_query("UPDATE users SET ukrypteret=$ukrypteret WHERE(id='$id')") or die();
mysql_query("UPDATE users SET logins=logins+1 WHERE(id='$id')") or die();
include("inc/header.php");
print "<font size=\"4\"><b><center>Indlæser Brugerprofil...";
include("inc/footer.php");
flush();
print "<meta http-equiv=\"refresh\" content=\"0\" url=\"loginok.php\">";
exit;
}
}
}
include("inc/password.php");
$select_info = mysql_query("SELECT username,onlinetid,spir,room,fisk FROM users WHERE(id='$id')");
$row_info = mysql_fetch_array($select_info);
$select_post = mysql_query("SELECT id FROM post WHERE(modtager='$id' && status='0')");
$select_online_users = mysql_query("SELECT id FROM users WHERE(rum!='0')");
$hour = floor($row_info[onlinetid]/60/60);
$tempmin = $row_info[onlinetid]/60;
$min = floor($tempmin-$hour*60);
if(mysql_num_rows($select_post)>0) {
$read = "<img src=\"gfx/post/letter3.gif\" border=\"0\">";
}
echo "<font size=\"4\"><u>Yo ".$row_info['username']."</u></font><br><left><font size=\"2\">";
echo "<a href=\"#\" onclick=\"window.open('chat/index.php','Cwacky','width=700,height=415,resizable=0,scrollbars=1');\">Chatten</a>";
echo "</font></center></font></center>";
echo "<b>Coinz: </b>".floor($row_info['spir'])."<br>";
echo "<b>Online Tid: </b>$hour timer og $min minutter<br>";
echo "<b>Online: </b>".mysql_num_rows($select_online_users)."<br>";
if ($row_info[room] != "0")
{
print "<b>Dit lejligheds Nummer er:</b> ".$row_info['room']."<br>";
}
print "<br>";
?>
<?
print "<center><b><font size=3><font color=\"FFDE00\"></font></font></b><br><b><br>";
for($i=0; $row_info[fisk]>$i; $i++) {
print "<img src=\"gfx/and.gif\">";
}
print "<br><br>";
?>
<body background="billed.gif">
</body>
</html></SCRIPT>
På forhånd tak!