Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> mysql_num_rows(): supplied argument is not a valid MySQL
Beosky
post
Post #1





Grupa: Zarejestrowani
Postów: 62
Pomógł: 0
Dołączył: 13.02.2012
Skąd: Wrocław

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


Cytat
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in D:\Program Files\WebServ\httpd\register.php on line 13


A, oto kod

  1. <?php
  2. require ('config/polacz.php');
  3.  
  4. $login = strip_tags(mysql_escape_string($_POST['login']));
  5. $haslo = md5($_POST['haslo']);
  6. $haslo2 = md5($_POST['haslo2']);
  7. $email = strip_tags(mysql_escape_string($_POST['email']));
  8.  
  9. $spr="SELECT id FROM users WHERE login='$login' OR email='$email'";
  10. $wspr = mysql_query($spr);
  11.  
  12. if(mysql_num_rows($wspr)==0) {
  13. }
  14. else {
  15. echo "Podany login lub email jest już używany przez innego użytkownika!";
  16. }
  17.  
  18.  
  19. ?>


Co może być nie tak?
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 20.08.2025 - 23:59