![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 5 Pomógł: 0 Dołączył: 29.10.2007 Ostrzeżenie: (0%) ![]() ![]() |
mam taka funkcje:
Kod function stan_wejscie($stan) { require_once('baza.inc'); echo $stan . "<BR>"; $numer = 27918; $data_poczatek = '2007-03-01 06:00:00'; $data_koniec = '2007-03-31 21:00:00'; $sql = "select ca_number, ch_date, ch_card_state from cards, card_history where (ca_number='$numer') and (ch_card_state='$stan') and (ch_date between '$data_poczatek' and '$data_koniec')"; $count = 0; //wykonaj zapytanie $wykonaj = fbird_query($db,$sql); while($row = fbird_fetch_assoc($wykonaj)) { $wejscia = Array($count=>$row["CH_DATE"]); $wynik[$count] = $wejscia[$count]; $count++; } fbird_free_result($row); fbird_free_query($wykonaj); fbird_close($db); return $wejscia; } i wywojuje ja tak: Kod $wejscie = stan_wejscie(0); Kod $wejscie = stan_wejscie(1); i teraz jaki mam problem: po pierwszym wywolaniu zwraca mi tablice z jakimis tam wartosciami o jakie mi chodzilo i jest ok, ale drogie wywolanie nie zwraca nic:(. jak skomentuje jedno wywolanie (obojetnie ktore to druge dziala) ale dwa naraz niechca co robie zle (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) |
|
|
![]() ![]() |
![]() |
Aktualny czas: 23.08.2025 - 12:53 |