Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [PHP/MySQL] Problem z zapytaniem do SQL i pętla
Forum PHP.pl > Forum > Przedszkole
servs
Witam!
Nie wiem co jest nie tak w kodzie... Wywala mi taki błąd:
Cytat
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


--------------------------------------------------------------------------------

Apache/2.0.59 (Win32) PHP/5.2.3 Server at localhost Port 80


A kod mam taki:

  1. <?php
  2. $x=mysql_query("SELECT `name`, `id` FROM `category_root`");
  3. while ($row=mysql_fetch_array($x)) {
  4. $y=mysql_query("SELECT `name` FROM `category_up` WHERE `root_id` =$row['id']");
  5. echo $row['name'];
  6. echo '<br>';
  7. echo $row1['name'];
  8.  }
  9. ?>


Co w tym kodzie jest nie tak?

Pozdrawiam!
MMX3
ERROR 500...

tzn modrewrite zbombany albo cały serwer poległ. pozdro
servs
Cytat(MMX3 @ 18.02.2008, 16:27:53 ) *
ERROR 500...

tzn modrewrite zbombany albo cały serwer poległ. pozdro


Serwer działa bo inne pliki na serwie chodzą. Co to te modrewrite?
Jakby co to mam serwer lokalny.
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.