Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP/MySQL] Problem z zapytaniem do SQL i pętla
servs
post 18.02.2008, 16:22:55
Post #1





Grupa: Zarejestrowani
Postów: 235
Pomógł: 0
Dołączył: 18.11.2006
Skąd: gorzów

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


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!
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this 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: 25.07.2025 - 10:05