Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MySQL][PHP]mysql_fetch_array()
meehow18
post
Post #1





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

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


Siemka mam taki bład

mysql_fetch_array(): supplied argument is not a valid MySQL result resource on line 11

a to mój skrypt.

  1. <?php
  2.  
  3. include ('config.php');
  4.  
  5.  
  6.  
  7.  
  8. $test= $_GET['kod'];
  9.  
  10. $result=mysql_query("SELECT * FROM premium WHERE kod == $test");
  11. $dane=mysql_fetch_array($result);
  12.  
  13. if($dane) {
  14. echo 'kod istnieje';
  15. }


Ten post edytował meehow18 26.07.2010, 11:42:53
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 24.08.2025 - 17:45