Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Gdzie jest tu błąd?
Chelo
post
Post #1





Grupa: Zarejestrowani
Postów: 178
Pomógł: 8
Dołączył: 19.03.2007

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


Witam wszystkich. Może mi ktoś powiedzieć, gdzie tutaj zrobiłem błąd?

  1. if ($_SESSION['automat0x'] == 1) {
  2. $asql = "SELECT * FROM ss WHERE dzialanie=0 ORDER BY id DESC";
  3. $aresult = mysql_query($asql);
  4. $arow = mysql_fetch_assoc($aresult);
  5. $brow = $arow['id'];
  6.  
  7. if ($arow['bwnr'] == $arow['link1'])
  8. {
  9. $bwnr1 = $arow['link2'];
  10. $nr0x = 0;
  11. }
  12. if ($arow['bwnr'] == $arow['link2'])
  13. {
  14. $bwnr1 = 2;
  15. $nr0x = 1;
  16. }
  17. if($arow['bwnr'] == 2)
  18. {
  19. $zmienna00x = 1;
  20. $nr0x = 1;
  21. }
  22. $_SESSION['flogin'] = $arow['login'];
  23. $login1f = $_SESSION['flogin'];
  24. $_SESSION['fhaslo'] = $arow['haslo'];
  25. $haslo1f = $_SESSION['fhaslo'];
  26. $_SESSION['tnr0'] = $arow['bwnr'];
  27. $numer99x = $_SESSION['tnr0'];
  28.  
  29. if($zmienna00x !== 1) {
  30. include('fasdasd' . '.php');
  31. }
  32. unset($_SESSION['tnr0']);
  33.  
  34. if($zmienna00x !== 1) {
  35. $asql1 = "UPDATE ap SET dzialanie=$nr0x, bwnr=$bwnr1 WHERE id=$brow";
  36. $aresult1 = mysql_query($asql1);
  37. $arow1 = mysql_fetch_assoc($aresult1);
  38. }
  39.  
  40. }


Wyskakuje błąd:
PHP Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /xxx/modcy1.php on line 61

proszę o pomoc


Ten post edytował Chelo 9.01.2010, 19:48:15
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: 23.08.2025 - 22:28