Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Warning: mysql_fetch_array():
-początkujący-
post
Post #1





Goście







Czesc wszystkim - o co mu chiodzi?

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\usr\krasnal\www\tp\rejestracja.php on line 249


pozdrawiam
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
-Gość_poczatkujacy-
post
Post #2





Goście







czesc - na samym poczatku mi juz wisi

  1. <?php 
  2.  
  3. function Valid( ) 
  4. { 
  5.  
  6.  $o = mysql_query("SELECT id, numerindeksu, pesel 
  7.  FROM tabela 
  8.  WHERE login = '" . $_POST['login'] . "' 
  9.  ;"); 
  10.  
  11.  $arr = mysql_fetch_array( $o ); 
  12.  
  13.  if ( $arr['numerindeksu'] == $_POST['numerindeksu'] 
  14.  OR 
  15. $arr['pesel'] == $_POST['pesel'] 
  16. ) 
  17.  { 
  18.  
  19. echo 'Przykro mi, ale podane przez Ciebie dane sie powtorzyly'; 
  20.  
  21.  header("Location: http://example.com"); 
  22.  
  23.  }
  24.  
  25. } 
  26.  
  27. ?>
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: 27.12.2025 - 02:25