Hej,
Mit problem er min profil.php
Den siger jeg fejlen:
Parse error: syntax error, unexpected T_ELSE in E:\\hjemmesider\\brixius\\brixius.wep.dk\\test\\community\\profil.php on line 78Men den skal være der?
Nogen der kan hjælpe mig?
profil.php
<?
include "../config.php";
$brugernavn = $_SESSION["brugernavn"];
$query = mysql_query("SELECT * FROM brugere where brugernavn = '$_GET[brugernavn]', '$_GET[navn]', '$_GET[alder]', '$_GET[hjemmeside]', '$_GET[msn]', '$_GET[fritekst]' ");
while ($row = mysql_fetch_array($query)) {
?>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="316">
<tr>
<td width="100%" height="152">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="409" height="211">
<tr>
<td width="326" height="19"><b>Brugernavn:</td>
<td width="595" height="19"><? echo "$row[brugernavn]"; ?></td>
</tr>
<tr>
<td width="326" height="19">Navn:</td>
<td width="595" height="19"><? echo "$row[navn]"; ?></td>
</tr>
<tr>
<td width="326" height="19">Alder:</td>
<td width="595" height="19"><? echo "$row[alder]"; ?></td>
</tr>
<tr>
<td width="326" height="19">Hjemmeside:</td>
<td width="595" height="19"><? echo "$row[hjemmeside]"; ?></td>
</tr>
<tr>
<td width="326" height="19">MSN:</td>
<td width="595" height="19"><? echo "$row[msn]"; ?></td>
</tr>
<tr>
<td width="326" height="116">Fri Tekst:</td>
<td width="595" height="116"><? echo "$row[fritekst]"; ?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%" height="152">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="409">
<tr>
<td width="178">Statestik:</td>
<td width="231"> </td>
</tr>
<tr>
<td width="178"> </td>
<td width="231"> </td>
</tr>
<tr>
<td width="178"> </td>
<td width="231"> </td>
</tr>
<tr>
<td width="178"> </td>
<td width="231"> </td>
</tr>
<tr>
<td width="178"> </td>
<td width="231"> </td>
</tr>
<tr>
<td width="178"> </td>
<td width="231"> </td>
</tr>
</table>
</td>
</tr>
</td>
</tr>
</table>
<?
if($brugernavn==$row['brugernavn']) {
echo "<a href='profil-ret.php'>Ændre Profil</a>";
}
}else{
echo "Du er ikke logget ind.";
}
?>
<link rel="stylesheet" href="css.css" type="text/css">