Moinsen
PHP
<?php
if($_GET['op'] == "") {
$abfrage = mysql_query("SELECT * FROM `username` WHERE `username` = '$_SESSION[user]'");
while($row = mysql_fetch_assoc($abfrage))
{
$team = $row[team];
}
?>
<b><u>Statistiken:</b></u><br>
<table border='0'>
<tr>
<td>Nickname:</td><td><input name='username' value=''.$user.'' readonly=readonly type='text' size='30' maxlength='16'></td>
<td>Score:</td><td><input name='score' value=''.$level.'' readonly=readonly size='30' maxlength='6'></td>
</tr>
<tr>
<td>Money:</td><td><input name='money' value=''.$money.' $' readonly=readonly size='30' maxlength='10'></td>
<td>Zeit:</td><td><input name='time' value=''.$time.' Min.' readonly=readonly size='30' maxlength='5'></td>
</tr>
<tr>
<td><form method='POST' action='interface.php?site=ownprofile&op=changeteam'>
Team:</td><td>
<input type='radio' value='1' name='blacksouls' onclick ='this.form.submit()' <?php if($team == 1) { echo "checked='checked'"; } ?> > Blacksouls </form></td>
</tr>
</table>
<br><br>
<b><u>Optionen:</b></u>
<table border='0'>
<tr>
<td><a href='../wi/interface.php?site=skin'>Skin Ändern</a></td><td> </td><td>Team Ändern</td>
</tr>
<tr>
<td><a href='../wi/interface.php?site=pw_change'>Passwort Ändern</a></td><td> </td><td><a href='../wi/interface.php?site=email_change'>eMail-Adresse Ändern</a></td>
</tr>
<?php
if($_GET['op'] == "changeteam") {
$aendern = "UPDATE username Set team = '$_POST[team]' WHERE username = '$user'";
mysql_query($aendern);
redirect('interface.php','',3);
echo "<font color=green><b>Das Team wurde erfolgreich geändert....Du wirst in 3 Sekunden weitergeleitet...</b></font>";
return 1;
}
?>
Alles anzeigen
Also ich weiß nicht weiter... Bei mir kommt immer der Fehler:
Parse error: syntax error, unexpected $end in ownprofile.php on line 52
Bitte helft mir!