[phptal] instrukcja warunkowa |
[phptal] instrukcja warunkowa |
5.02.2012, 17:22:44
Post
#1
|
|
Grupa: Zarejestrowani Postów: 51 Pomógł: 0 Dołączył: 1.10.2010 Ostrzeżenie: (0%) |
Witam. Mam taki problem, że warunek w poniższym przykładzie jest zawsze prawdziwy i za każdym razem wyrzuca wszystkie wiersze z tablicy
Czy ktoś widzi błąd? Dodam że sprawdzałem osobno tal:content="results2/section_id" i tal:content="opt/id" i wyświetlane wartości są jak najbardziej prawidłowe. Oczywiście są różne wartości id i section_id. Czemu zatem zawsze jest prawda z warunku? Informacje dodatkowe: pojawia się taki błąd: 8: Trying to get property of non-object C:\Users\Adek\AppData\Local\Temp\tpl_4f2eb515_site__G_xW1A8pVdnRFhrvLUZ2Uw.php 109 Array 05.02.2012 18:13 w tym pliku i w tej linii mamy:
I jeszcze takie coś: 8: Trying to get property of non-object C:\Program Files (x86)\WebServ\httpd\strona\include\PHPTAL\PHPTAL.php(845) : eval()'d code 110 Array 05.02.2012 18:19 Ten post edytował dragon7 5.02.2012, 18:33:23 |
|
|
6.02.2012, 20:09:18
Post
#2
|
|
Grupa: Zarejestrowani Postów: 6 373 Pomógł: 1116 Dołączył: 30.08.2006 Ostrzeżenie: (0%) |
A spróbuj na początek
-------------------- |
|
|
6.02.2012, 21:37:15
Post
#3
|
|
Grupa: Zarejestrowani Postów: 51 Pomógł: 0 Dołączył: 1.10.2010 Ostrzeżenie: (0%) |
niestety nie ma żadnej różnicy, warunek jest wiecznie prawdziwy ;/
|
|
|
8.02.2012, 20:22:49
Post
#4
|
|
Grupa: Zarejestrowani Postów: 6 373 Pomógł: 1116 Dołączył: 30.08.2006 Ostrzeżenie: (0%) |
A jakie przekazujesz dane do tego warunku?
-------------------- |
|
|
10.02.2012, 11:28:29
Post
#5
|
|
Grupa: Zarejestrowani Postów: 51 Pomógł: 0 Dołączył: 1.10.2010 Ostrzeżenie: (0%) |
identyfikatory, czyli liczby całkowite
wszystko jest przekazane obiektem Ten post edytował dragon7 10.02.2012, 11:29:07 |
|
|
Wersja Lo-Fi | Aktualny czas: 26.09.2024 - 23:39 |