Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Unable to jump to row 0
kosmita0
post
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 13.03.2005

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


witam, jestem tu nowy, ale pomozcie, pojawia mi sie taki blad
Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 4 in /home2/green/public_html/counter.php on line 15

tak przestawia sie u mnie 14,15 i 16 linijka skryptu:

$file = mysql_query("SELECT name FROM counter WHERE
name='".$_GET['id']."'") or die(mysql_error());
$results = mysql_result($file,0);

co mam zrobic zeby to dzialalo??

pozdrawiam i czekam na info
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
rogrog
post
Post #2





Grupa: Zarejestrowani
Postów: 602
Pomógł: 1
Dołączył: 3.04.2004
Skąd: Trójmiasto (Gdańsk)

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


Cytat
  1. <?php
  2. $results = mysql_result($file,0);
  3. ?>

czemu nie poprostu:
  1. <?php
  2. $results = mysql_result($file);
  3. ?>

(IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif)
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: 7.10.2025 - 11:35