Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] Problem z korzystaniem z mysql_result
Balon
post
Post #1





Grupa: Zarejestrowani
Postów: 422
Pomógł: 0
Dołączył: 14.12.2005
Skąd: Wałbrzych

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


  1. <?php
  2. $query_char= mysql_query('SELECT hp_char FROM fight WHERE user=$user');
  3. $query_mob= mysql_query('SELECT hp_mob FROM fight WHERE user=$user');
  4. $mob_hp = mysql_result($query_mob, 0, 0);
  5. $char_hp = mysql_result($query_char, 0, 0);
  6. ?>


taki kod wywala mi blad

Kod
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/soonhost/public_html/tury.php on line 35

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/soonhost/public_html/tury.php on line 36


w tej tabeli mam tylko jeden rekord . nie wiem dalczego to nie dziala... przeciez nie ma tu nigdzie zadnego bledu ...

prosze o pomoc

Ten post edytował Balon 9.03.2006, 19:08:57
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: 23.08.2025 - 09:02