hmm bin jetzt erst zu gekommen das zu testen.. funktioniert nicht :SS
Parse error: parse error, unexpected T_ELSE in /usr/export/www/vhosts/funnetwork/hosting/mscv/teilnehmer.php on line 40
PHP-Code:
<?php
if(isset($varid))
$sql = "SELECT * FROM ".MYSQL_TABLE."user WHERE id = '$varid';";
else
$sql = "SELECT * FROM ".MYSQL_TABLE."user ORDER BY name DESC LIMIT 0,10;";
view = new Query($sql);
$counter = 0;
if($view->numRows() != 0){
while($row = $view->fetch()) {
if ($counter %2)
echo "<table width='80%' border='0' cellspacing='0' cellpadding='00'>
<tr>
<td width='24%'>[img]images/benutzer/".$row[[/img]</td>
<td width='76%' valign='top'>Name
¤ ".$row['name']."
Wohnort ¤ ".$row['wohnort']."
Alter ¤ ";
if("0000-00-00" == $row['age'])
echo"n/a";
else
echo"".getage(sprintf(date("d", strtotime($row['age']))), sprintf(date("m", strtotime($row['age']))), sprintf(date("Y", strtotime($row['age']))))." (".$row['age'].")
Funktion ¤ ".$row['funktion']."
ICQ ¤ ".$row['icq']."
eMail ¤ ".$row['mail']."
[b]Info[/b]
[i]".$row['bio']."[/i]
[b]Bisher gewonnene Saft-Cups[/b]
[i]"; include("history/".$row['id'].".php"); echo"[/i]</td>
</tr>
</table>"; } else {
echo"<table width='80%' border='0' cellspacing='0' cellpadding='00'>
<tr>
<td width='24%'>[img]images/benutzer/".$row[[/img]</td>
<td width='76%' valign='top'>Name
¤ ".$row['name']."
Wohnort ¤ ".$row['wohnort']."
Alter ¤ ";
if("0000-00-00" == $row['age'])
echo"n/a";
else
echo"".getage(sprintf(date("d", strtotime($row['age']))), sprintf(date("m", strtotime($row['age']))), sprintf(date("Y", strtotime($row['age']))))." (".$row['age'].")
Funktion ¤ ".$row['funktion']."
ICQ ¤ ".$row['icq']."
eMail ¤ ".$row['mail']."
[b]Info[/b]
[i]".$row['bio']."[/i]
[b]Bisher gewonnene Saft-Cups[/b]
[i]"; include("history/".$row['id'].".php"); echo"[/i]</td>
</tr>
</table>";
$counter++;
}
}
else
echo"<div align='center' class='normal'>· Keinen Eintrag in der Datenbank gefunden ·</div>";
$view->free();
unset($view);
?>