![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
![]() Grupa: Zarejestrowani Postów: 246 Pomógł: 8 Dołączył: 2.04.2006 Skąd: Gliwice Ostrzeżenie: (0%) ![]() ![]() |
witam,
czy ktos mi powie czemu mam taki komunikat ?, chce pobrac liczbe wierszy wiez uzylem mysql_num_rows chyba ze zle ?! :-) error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in D:\SuchY\WWW\library\functions.php on line 7" title="Zobacz w manualu PHP" target="_manual |
|
|
![]()
Post
#2
|
|
![]() Grupa: Moderatorzy Postów: 4 465 Pomógł: 137 Dołączył: 26.03.2004 Skąd: Gorzów Wlkp. ![]() |
Hmm?
-------------------- To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness; chaotic, confused, vulnerability, to inform yourself. Think for yourself. Question authority. |
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 355 Pomógł: 50 Dołączył: 20.08.2007 Skąd: Częstochowa Ostrzeżenie: (0%) ![]() ![]() |
co to jest $conn?
proponuje zrobic to tak :
jezeli masz w zapytanie funkcje count(id) to zapytanie zwroci zawsze jeden wiersz np. +------------+ | count(id) | +------------+ | 3 | +------------+ -------------------- przetwornik yt na czasie :)
|
|
|
![]()
Post
#4
|
|
![]() Grupa: Zarejestrowani Postów: 246 Pomógł: 8 Dołączył: 2.04.2006 Skąd: Gliwice Ostrzeżenie: (0%) ![]() ![]() |
dalej to samo:
aktualnie w wyniku powinna byc liczba 2, ktos ma jakis pomysl jeszcze ?! co to jest $conn? proponuje zrobic to tak :
jezeli masz w zapytanie funkcje count(id) to zapytanie zwroci zawsze jeden wiersz np. +------------+ | count(id) | +------------+ | 3 | +------------+ plik index.php
plik config.php
plik db.php
|
|
|
![]()
Post
#5
|
|
![]() Grupa: Moderatorzy Postów: 4 465 Pomógł: 137 Dołączył: 26.03.2004 Skąd: Gorzów Wlkp. ![]() |
Niemożliwe :|
Przepuść to przez zwykłe mysql_query(), bo ta mysql_db_query może się dziwnie zachowywać -------------------- To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness; chaotic, confused, vulnerability, to inform yourself. Think for yourself. Question authority. |
|
|
![]()
Post
#6
|
|
![]() Grupa: Zarejestrowani Postów: 246 Pomógł: 8 Dołączył: 2.04.2006 Skąd: Gliwice Ostrzeżenie: (0%) ![]() ![]() |
|
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 29.06.2025 - 19:16 |