Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [php]skrócony if
herbatniczek
post
Post #1





Grupa: Zarejestrowani
Postów: 84
Pomógł: 0
Dołączył: 12.10.2004

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


cześć, mam błąd i nie wiem jaki w linii

(isset($_SESSION['S_login'])&&!empty($_SESSION['S_login']))?
(header('Location: https://'.$server.'/'.$projekt.'/index.php?strona=kategorie_brak')):(header('Location: http://'.$server.'/'.$projekt.'/index.php?strona=kategorie_brak'));

Parse error: parse error in c:\usr\krasnal\www\sklep\kategorie.inc on line 4
Go to the top of the page
+Quote Post
hwao
post
Post #2


Developer


Grupa: Moderatorzy
Postów: 2 844
Pomógł: 20
Dołączył: 25.11.2003
Skąd: Olkusz




  1. <?php
  2.  ( isset( $_SESSION['S_login'] ) && !empty( $_SESSION['S_login'] ) ) ?
  3.  'Location: https://'.$server.'/'.$projekt.'/index.php?strona=kategorie_brak' :
  4.  'Location: http://'.$server.'/'.$projekt.'/index.php?strona=kategorie_brak' )
  5. );
  6. ?>

IMHO tak...
moglem gdzies pominac ( )
Go to the top of the page
+Quote Post
herbatniczek
post
Post #3





Grupa: Zarejestrowani
Postów: 84
Pomógł: 0
Dołączył: 12.10.2004

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


dzieki
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 10:57