Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [wolontariat]Instrukcja if, problem
mlody93
post
Post #1





Grupa: Zarejestrowani
Postów: 14
Pomógł: 0
Dołączył: 2.07.2009

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


Witam.
Dlaczego ten skrypt nie działa?

zmienna $lum jest podawana przez formularz

if ( 3400 < $lum ) {
$lampa = "lampa 50 W";
} elseif ( 4500 > $lum ){
$lampa = "lampa 50W";
} elseif ( 4501 < $lum ){
$lampa = "lampa 70 W";
} elseif ( 7000 > $lum ){
$lampa = "lampa 70 W";
} else if ( 7001 < $lum ){
$lampa = "lampa 100 W";
} elseif ( 12000 > $lum ){
$lampa = "lampa 100 W";
}


Aby oświetlić pokój potrzebujesz: $lampa

Jeżeli ktoś mi pomoże będę wdzięczny
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.12.2025 - 10:16