Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][MYSQL]blad przy pobieraniu danych z bazy
king
post
Post #1





Grupa: Zarejestrowani
Postów: 31
Pomógł: 0
Dołączył: 20.07.2008

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


Witam....
Chcialem pobrac i wyswietlic dane z bzy ale wyswietla mi sie taki blad:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/s/n/a/snakesvsspiders/www/potwor.php on line 17

blad jest gdzies tu
  1. <?php
  2. $result1 = mysql_query("SELECT * FROM monster WHERE id='1' ");
  3. $row1 = mysql_fetch_array($result1);
  4. ?>


chce pobrac dane z tabeli monster gdzie id rowne jest 1......

pozdro
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
kaem
post
Post #2





Grupa: Zarejestrowani
Postów: 248
Pomógł: 38
Dołączył: 29.06.2008

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


Sądząc po nazwie pierwszej kolumny i nazwie bazy powinno być
  1. <?php
  2. $result1 = mysql_query("SELECT * FROM momster WHERE dane_id='1'");
  3. ?>

(IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg)

Ten post edytował kaem 26.07.2008, 21:17:39
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 10.10.2025 - 13:48