Zrobiłem księgę gości na plikach, ale...
coś mi nie działa

. Wyświetla się komunikat:
Cytat
Parse error: syntax error, unexpected '&' in /var/www/sites/hosting/k/a/adres-strony/guestbook/index.php on line 79
Oto mój kod:
<?
if(!isset($_GET['add'],$_GET['up'])) {
require_once "header.php";
echo "<p align='center'><b>Wpisy do Księgi Gości</b></p>\n";
$file = file('data.txt'); foreach($file as $key => $value)
{
$tresc = wordwrap($data[6], 70, "<br>", 1
); echo"<table width='100%' cellpadding='2' cellspacing='2'> <tr>
<td align='center' colspan='3'>Godzina: $data[0]</td>
<td align='center' colspan='3'>Data: $data[1]</td>
</tr>
<tr>
<td width='33%' colspan='2' align='center'>Nick: $data[2]</td>
<td width='33%' colspan='2' align='center'><a href='mailto:$data[3]'>$data[3]</a></td>
<td width='33%' colspan='2' align='center'>IP: $data[4]</td>
</tr>
<tr>
<td align='center' colspan='6'><a href='http://$data[5]'>$data[5]</a></td>
</tr>
<tr>
<td align='center' colspan='6'><br>$tresc<br><br></td>
</tr>
</table>
<br>\n";
}
require_once "footer.php";
}
elseif ($_GET['add']==yes)
{
require_once "header.php";
echo "<p align='center'><b>Dodaj wpis</b></p> <p align='center'>Wypełnij poniższy formularz, aby dodać wpis:</p>
<br>
<form method='post' action='index.php?add=yes&up=up'>
<table width='100%' cellpadding='2' cellspacing='2'>
<tr>
<td align='right'>Nick:</td>
<td><input type='text' name='nick' style='font-size: 12px; width: 300px'></td>
</tr>
<tr>
<td align='right'>E-mail:</td>
<td><input type='text' name='mail' style='font-size: 12px; width: 300px'></td>
</tr>
<tr>
<td align='right'>Strona WWW:</td>
<td>http:// <input type='text' name='www' style='font-size: 12px; width: 265px'></td>
</tr>
<tr>
<td align='right' valign='top'>Treść wiadomości:</td>
<td><textarea name='tresc' style='font-size: 12px; width: 300px; height: 150px'></textarea></td>
</tr>
<tr>
<td align='center' colspan='2'><input type='reset' name='Reset' value='Usuń' style='width: 100px; height: 20px; border-color: #000000; border-width: 1px'>
<input type='submit' name='Submit2' value='Dodaj' style='width: 100px; height: 20px; border-color: #000000; border-width: 1px'></td>
</tr>
</table>
</form>\n";
require_once "footer.php";
}
elseif ($_GET['add']==yes)($_GET['up']==up)
{
$godzina = date('H:i:s'); $nick = $_POST['nick'];
$mail = $_POST['mail'];
$ip = $_SERVER['REMOTE_ADDR'];
$www = $_POST['www'];
$tresc = $_POST['tresc'];
$wynik = $godzina . '|||' . $data . '|||' . $nick . '|||' . $mail . '|||' . $ip . '|||' . $www . '|||' . $tresc . "\n";
$plik ="data.txt";
require_once "header.php";
echo "<p align='center'><b>Gotowe!</b></p> <br>
<p align='center'>Wpis został dodany!</p>
<br><br>\n";
require_once "footer.php";
}
?>
Bardzo proszę o pomoc!
Pozdrawiam,
Kacpereczek