Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Dziwny blad mysql_fetch_array
karer
post
Post #1





Grupa: Zarejestrowani
Postów: 19
Pomógł: 0
Dołączył: 15.08.2010

Ostrzeżenie: (10%)
X----


Napisałem sobie skrypt:
  1. <?php
  2. ini_set('display_errors','1');
  3. include('baza.php');
  4. $id = $_GET['user'];
  5. $user = $_SESSION['zalogowany'];
  6. $name = mysql_fetch_array(mysql_query("SELECT `nazwa` FROM users WHERE user='$user' "));
  7. $rank = mysql_fetch_array(mysql_query("SELECT `ranga `FROM users WHERE user='$user' "));
  8. $hp = mysql_fetch_array(mysql_query("SELECT `hp` FROM users WHERE user='$user' "));
  9. include('baza.php');
  10. echo "Nazwa: " . $name . "<br>";
  11. echo "Ranga: " . $rank . "<br>";
  12. echo "HP" . $hp . "<br>";
  13. ?>


ale kiedy wejde na strone to mam errora:
  1. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/forumtop/public_html/herowars/pmenu.php on line 5
  2.  
  3. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/forumtop/public_html/herowars/pmenu.php on line 6


Ten post edytował karer 20.08.2010, 10:04:45
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 22.08.2025 - 21:53