Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MySQL][PHP] Błąd ElseIf
Dominator
post
Post #1





Grupa: Zarejestrowani
Postów: 565
Pomógł: 15
Dołączył: 11.10.2010

Ostrzeżenie: (20%)
X----


Dlaczego mi występuje ten błąd Parse error: syntax error, unexpected T_ELSEIF tratata on line 46

  1. <?php
  2. if(@$_POST['form']==true){
  3. if(@$login==@$logi['login'] && @$pass==@$logi['password'] && $logi['potwierdzenie']==1)
  4. {
  5. $_SESSION['zalogowany']=1;
  6. $_SESSION['login']=$login;
  7. header("Location: index.php");
  8. }
  9. elseif(@$login==@$logi['login'] && @$pass==@$logi['password'] && $logi['potwierdzenie']==0)
  10. {
  11. echo "Twoje konto nie zostało jeszcze aktywowane";
  12. }
  13. else{
  14. echo "Podałeś błędny login lub hasło";
  15. }
  16. elseif(@$login==@$logi['login'] && @$pass==@$logi['password'] && $logi['potwierdzenie']==1 && $logi['ban']==1) //tutaj
  17. {
  18. echo "Przepraszam, jestes zbanowany";
  19. }
  20. }
  21. ?>


Pomóżcie
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: 16.09.2025 - 08:52