Oto moj kod
<?php
$page_title = 'Przeglądanie ocen';
include ('./includes/header.html');
require_once ('../mysql_connect.php'); // Nawiązanie połączenia z bazą danych.
$query = 'SELECT * FROM przedmioty ORDER BY przedmiot ASC';
$GLOBALS['type'] = "$row[0]";
$GLOBALS['w'] = "$row[1]";
}
$first = TRUE;
$query = "SELECT u.url_id, title, description, id FROM urls AS u, url_associations AS
ua WHERE u.url_id = ua.url_id AND ua.url_category_id=$type AND ua.approved = 'Y' ORDER BY date_submitted DESC";
if ($first) {
echo '<table border="0" width="100%" cellspacing="3" cellpadding="3" align="center"> <tr>
<td align="right" width="40%"><font size="+1">Uczeń</font></td>
<td align="left" width="50%"><font size="+1">Oceny</font></td>
<td align="center" width="10%"> </td>
</tr>';
$first = FALSE; // Pierwszy rekord został zwrócony.
} // Koniec instrukcji IF $first.
// Wyświetlanie rekordów.
<td align="right">$w</td>
<td align="left">{$row['description']}</td>
<td align="center"><a href="edit_oceny.php?uid={$row['url_id']}">edytuj</a></td>
</tr>n";
} // Koniec pętli while.
if ($first) {
echo '<div align="center">Obecnie nie ma żadnych uczniów należących do tej kategorii.</div>'; } else {
echo '</table>'; // Zamykanie tabeli. }
include ('./includes/footer.html');
?>
Mam problem ponieważ wyskakuje mi taki komunikat :
Kod
Parse error: syntax error, unexpected T_STRING in /usr/local/apache/www/htdocs/wert.a5.pl/html/view_oceny1.php on line 27
Czy ktoś mógł by mi pomóć

?
Ten post edytował wert1 1.05.2007, 05:56:38