Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]mysql_fetch_assoc() error
meehow18
post
Post #1





Grupa: Zarejestrowani
Postów: 102
Pomógł: 0
Dołączył: 10.01.2010

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


Witam, mam taką funkcje i wyskakuje mi error

Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\skrypt\config.php on line 7

  1. function sms0($sms, $ID)
  2. {
  3.  
  4. $qwery = sprintf("SELECT * kod WHERE kod2='$sms' ");
  5.  
  6. $result = mysql_query($qwery);
  7. $row = mysql_fetch_assoc($result);
  8.  
  9. return $row;
  10. }


Ten post edytował meehow18 28.01.2010, 09:20:00
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: 19.09.2025 - 04:37