Cytat
Notice: Undefined variable: conn in c:\program files\easyphp1-8\www\wybor.php on line 21
Notice: Undefined variable: pass in c:\program files\easyphp1-8\www\wybor.php on line 23
Notice: Undefined variable: dzial in c:\program files\easyphp1-8\www\wybor.php on line 27
Notice: Undefined variable: pass in c:\program files\easyphp1-8\www\wybor.php on line 23
Notice: Undefined variable: dzial in c:\program files\easyphp1-8\www\wybor.php on line 27
A tutaj wklejam plik
<? function connection() { if ($conn) { return $conn; } else { else { return $conn; } } } function sql ($query) { if (!($conn=connection())) { return 0; } if (!$result) { return 0; } else { return $result; } } } $wynik=sql("SELECT nazwa, haslo FROM users WHERE nazwa="".$user."" AND haslo="".$pass."";"); switch($dzial) { case('magazyn'): { header("Location: <a href="http://serwer/logowanie_m.html");" target="_blank">http://serwer/logowanie_m.html");</a> } break; case('sprzedaz'): { header("Location: <a href="http://serwer/logowanie_s.html");" target="_blank">http://serwer/logowanie_s.html");</a> } break; default: break; } else switch($dzial) { case('magazyn'): { header("Location: <a href="http://serwer/magazyn.php?kl=0&nr=0");" target="_blank">http://serwer/magazyn.php?kl=0&nr=0");</a> } break; case('sprzedaz'): { header("Location: <a href="http://serwer/sprzedaz.php?opcja=wszystkie");" target="_blank">http://serwer/sprzedaz.php?opcja=wszystkie");</a> } break; default: break; } ?>
nie wiem co jest nie tak, a wolę nie mieszać, używam teraz easyphp 1.8, czy koniecznie muszę instalować stare oprogramowanie? Tutaj mam wszystko w jednym programie, a tak muszę wszystko oddzielnie instalować
