Jump to content

O mica problema !! Help ME!


Rby Robert

Recommended Posts

Salut incerc sa conectez un panel la gm dar imi da o eroare....

[24-Aug-2021 17:25:46 Europe/Bucharest] PHP Parse error:  syntax error, unexpected 'else' (T_ELSE), expecting end of file in /home/dtyroman/public_html/panel/inc/header.inc.php on line 7

Nu stiu ce sa ii fac am incercat toate modele 

daca sterg asta din panel/inc/header.inc.php

else {

    if(Config::isAdmin(Config::getUser())) {

        $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_tickets` WHERE `Status` = 0'); $get-
>execute();

        $tickets = $get->rowCount();

        

        $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_unban` WHERE `Status` = 0'); $get->execute
();

        $unban = $get->rowCount();

        

        $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_complaints` WHERE `Status` = 0'); $get-
>execute();

        $complaints = $get->rowCount();

    } else {

        $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_tickets` WHERE `Status` = 0 AND `UserID` =
?'); $get->execute(array(Config::getUser()));

        $tickets = $get->rowCount();

        

        $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_unban` WHERE `Status` = 0 AND `UserID` =
?'); $get->execute(array(Config::getUser()));

        $unban = $get->rowCount();

        

        $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_complaints` WHERE `Status` = 0 AND `UserID`
= ? OR `Status` = 0 AND `AccusedID` = ?'); $get->execute(array(Config::getUser(),Config::getUser()));

        $complaints = $get->rowCount();

    }

}

Merge dar nu pot sa ma loghez adica imi da pagina alba

 

Link to comment
Share on other sites

  • 2 months later...
On 8/24/2021 at 5:34 PM, Rby Robert said:

Salut incerc sa conectez un panel la gm dar imi da o eroare....

[24-Aug-2021 17:25:46 Europe/Bucharest] PHP Parse error:  syntax error, unexpected 'else' (T_ELSE), expecting end of file in /home/dtyroman/public_html/panel/inc/header.inc.php on line 7

Nu stiu ce sa ii fac am incercat toate modele 

daca sterg asta din panel/inc/header.inc.php

else {

    if(Config::isAdmin(Config::getUser())) {

        $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_tickets` WHERE `Status` = 0'); $get-
>execute();

        $tickets = $get->rowCount();

        

        $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_unban` WHERE `Status` = 0'); $get->execute
();

        $unban = $get->rowCount();

        

        $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_complaints` WHERE `Status` = 0'); $get-
>execute();

        $complaints = $get->rowCount();

    } else {

        $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_tickets` WHERE `Status` = 0 AND `UserID` =
?'); $get->execute(array(Config::getUser()));

        $tickets = $get->rowCount();

        

        $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_unban` WHERE `Status` = 0 AND `UserID` =
?'); $get->execute(array(Config::getUser()));

        $unban = $get->rowCount();

        

        $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_complaints` WHERE `Status` = 0 AND `UserID`
= ? OR `Status` = 0 AND `AccusedID` = ?'); $get->execute(array(Config::getUser(),Config::getUser()));

        $complaints = $get->rowCount();

    }

}

Merge dar nu pot sa ma loghez adica imi da pagina alba

 

Salut.

PM pentru ajutor.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.