Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [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
MMX3
post 18.02.2008, 16:27:53
Post #2





Grupa: Zarejestrowani
Postów: 155
Pomógł: 9
Dołączył: 26.01.2004
Skąd: Poznań

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


ERROR 500...

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


--------------------
Go to the top of the page
+Quote Post
servs
post 18.02.2008, 16:30:08
Post #3





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

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


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

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: 19.07.2025 - 14:26