Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php]Parse error, HELP ME !!!
wert1
post 30.04.2007, 15:09:43
Post #1





Grupa: Zarejestrowani
Postów: 175
Pomógł: 2
Dołączył: 22.03.2007
Skąd: localhost

Ostrzeżenie: (0%)
-----


Oto moj kod
  1. <?php 
  2.  
  3. $page_title = 'Przeglądanie ocen';
  4. include ('./includes/header.html');
  5.  
  6. require_once ('../mysql_connect.php'); // Nawiązanie połączenia z bazą danych.
  7.  
  8.  
  9.  
  10.  
  11.  
  12. $query = 'SELECT * FROM przedmioty ORDER BY przedmiot ASC';
  13. $result = mysql_query ($query);
  14. while ($row = mysql_fetch_array ($result, MYSQL_NUM)) {
  15.  $GLOBALS['type'] = "$row[0]";
  16.  $GLOBALS['w'] = "$row[1]";
  17.  
  18. }
  19.  
  20.  
  21.  
  22.  
  23.  
  24. $first = TRUE; 
  25.  
  26.  
  27. $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"
    ;
  28. $result = mysql_query ($query);
  29.  
  30.  
  31. while ($row = mysql_fetch_array ($result, MYSQL_ASSOC)) {
  32.  
  33. if ($first) {
  34. echo '<table border="0" width="100%" cellspacing="3" cellpadding="3" align="center">
  35. <tr>
  36. <td align="right" width="40%"><font size="+1">Uczeń</font></td>
  37. <td align="left" width="50%"><font size="+1">Oceny</font></td>
  38. <td align="center" width="10%"> </td>
  39. </tr>';
  40. $first = FALSE; // Pierwszy rekord został zwrócony.
  41. } // Koniec instrukcji IF $first.
  42.  
  43. // Wyświetlanie rekordów.
  44. echo " <tr>
  45. <td align="right">$w</td>
  46. <td align="left">{$row['description']}</td>
  47. <td align="center"><a href="edit_oceny.php?uid={$row['url_id']}">edytuj</a></td>
  48.  
  49. </tr>n";
  50.  
  51. } // Koniec pętli while.
  52.  
  53.  
  54. if ($first) {
  55. echo '<div align="center">Obecnie nie ma żadnych uczniów należących do tej kategorii.</div>';
  56. } else {
  57. echo '</table>'; // Zamykanie tabeli.
  58. }
  59.  
  60.  
  61.  
  62. mysql_close(); // Zamknięcie połączenia z bazą danych.
  63. include ('./includes/footer.html');
  64. ?>

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óć questionmark.gif?

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


--------------------
"Homo sum, humani nihil a me alienum puto."
"Necessitas ultimum et maximum telum est."
"Ventem seminabunt et turbinem metent."
"Gallia est omnis divisa in partes tres..."
Go to the top of the page
+Quote Post

Posty w temacie


Closed TopicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 15.06.2025 - 15:41