Hej
den vil ikke vise brugerens profil
den siger bare
"Den afsøgte bruger blev ikke fundet.
Prøv igen senere. "
Kan ikke selv finde fejlen. håber i kan
<?php
session_start();
include("sider.php");
if ($_SESSION['status'] == "login")
{
}
else
{
print(" <script language='javascript'>
location.href='login.php';
</script>");
}
?>
<link rel="stylesheet" type="text/css" href="style/style.css">
<body style="background-color: #FFFFFF; background-image: url('')"><div id="sider">
<?
include("access.php");
$sql = mysql_query("SELECT *, date_format(tid, '%e/%c %Y, %H:%i') as tid FROM login WHERE id = '$id'");
while($row = mysql_fetch_array($sql)) {
echo "
<table width='400'>
<tr>
<td colsan='2'><h3>$row[user]</h3></td>
</tr>
<tr>
<td width='100' height='20'><font face='verdana' size='-2'>Oprettet:</td>
<td width='200'><font face='verdana' size='-2'>$row[tid]</font></td>
<tr>
<tr>
<td width='100' height='20'><font face='verdana' size='-2'>Alder:</td>
<td width='200'><font face='verdana' size='-2'>$row[alder]</font></td>
<tr>
<tr>
<td width='100' height='20'><font face='verdana' size='-2'>Bopæl:</td>
<td width='200'><font face='verdana' size='-2'>$row[bopael]</font></td>
<tr>
<td width='100' height='20'><font face='verdana' size='-2'>E-Mail:</font></td>
<td><font face='verdana' size='-2'><a href='mailto:$row[email]'>$row[email]</a></font></td>
</tr>
<tr>
<td width='100' height='20'><font face='verdana' size='-2'>Telefon:</td>
<td width='200'><font face='verdana' size='-2'>$row[tlf]</font></td>
<tr>
</table>
";
}
if($id == NULL){
echo "\n Den afsøgte bruger blev ikke fundet. <br>\n Prøv igen senere.\n";
}
?>