APO-Epsilon/apo-website

View on GitHub
create_event_done.php

Summary

Maintainability
B
6 hrs
Test Coverage

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_SESSION.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_POST.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Minor
Found in create_event_done.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

Method show_active has 94 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function show_active() {
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];    
    $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    $aresult=mysqli_fetch_array($aresponse);
Severity: Major
Found in create_event_done.php - About 3 hrs to fix

    Function show_active has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php - About 2 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    The function show_active() has 108 lines of code. Current threshold is set to 100. Avoid really long methods.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    The function show_active() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CyclomaticComplexity

    Since: 0.1

    Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

    Example

    // Cyclomatic Complexity = 11
    class Foo {
    1   public function example() {
    2       if ($a == $b) {
    3           if ($a1 == $b1) {
                    fiddle();
    4           } elseif ($a2 == $b2) {
                    fiddle();
                } else {
                    fiddle();
                }
    5       } elseif ($c == $d) {
    6           while ($c == $d) {
                    fiddle();
                }
    7        } elseif ($e == $f) {
    8           for ($n = 0; $n < $h; $n++) {
                    fiddle();
                }
            } else {
                switch ($z) {
    9               case 1:
                        fiddle();
                        break;
    10              case 2:
                        fiddle();
                        break;
    11              case 3:
                        fiddle();
                        break;
                    default:
                        fiddle();
                        break;
                }
            }
        }
    }

    Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

    Avoid using undefined variables such as '$db' which will lead to PHP notices.
    Open

        $response=$db->query("SELECT event_name,event_type FROM events_listing");
    Severity: Minor
    Found in create_event_done.php by phpmd

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

    Source https://phpmd.org/rules/cleancode.html#undefinedvariable

    Avoid using undefined variables such as '$db' which will lead to PHP notices.
    Open

        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    Severity: Minor
    Found in create_event_done.php by phpmd

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

    Source https://phpmd.org/rules/cleancode.html#undefinedvariable

    Avoid using undefined variables such as '$db' which will lead to PHP notices.
    Open

                $result = $db->query($SQL) or die("Failed to submit.");
    Severity: Minor
    Found in create_event_done.php by phpmd

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

    Source https://phpmd.org/rules/cleancode.html#undefinedvariable

    Avoid using undefined variables such as '$db' which will lead to PHP notices.
    Open

            $result = $db->query($SQL) or die("<a href='create_event.php'>Create an Event</a>");
    Severity: Minor
    Found in create_event_done.php by phpmd

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

    Source https://phpmd.org/rules/cleancode.html#undefinedvariable

    Avoid assigning values to variables in if clauses and the like (line '83', column '7').
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    IfStatementAssignment

    Since: 2.7.0

    Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

    Example

    class Foo
    {
        public function bar($flag)
        {
            if ($foo = 'bar') { // possible typo
                // ...
            }
            if ($baz = 0) { // always false
                // ...
            }
        }
    }

    Source http://phpmd.org/rules/cleancode.html#ifstatementassignment

    The method show_active uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
    Open

    else{
        echo "Only exec can create events.";
    }
    Severity: Minor
    Found in create_event_done.php by phpmd

    ElseExpression

    Since: 1.4.0

    An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

    Example

    class Foo
    {
        public function bar($flag)
        {
            if ($flag) {
                // one branch
            } else {
                // another branch
            }
        }
    }

    Source https://phpmd.org/rules/cleancode.html#elseexpression

    The function show_active() contains an exit expression.
    Open

            $result = $db->query($SQL) or die("<a href='create_event.php'>Create an Event</a>");
    Severity: Minor
    Found in create_event_done.php by phpmd

    ExitExpression

    Since: 0.2

    An exit-expression within regular code is untestable and therefore it should be avoided. Consider to move the exit-expression into some kind of startup script where an error/exception code is returned to the calling environment.

    Example

    class Foo {
        public function bar($param)  {
            if ($param === 42) {
                exit(23);
            }
        }
    }

    Source https://phpmd.org/rules/design.html#exitexpression

    The function show_active() contains an exit expression.
    Open

                $result = $db->query($SQL) or die("Failed to submit.");
    Severity: Minor
    Found in create_event_done.php by phpmd

    ExitExpression

    Since: 0.2

    An exit-expression within regular code is untestable and therefore it should be avoided. Consider to move the exit-expression into some kind of startup script where an error/exception code is returned to the calling environment.

    Example

    class Foo {
        public function bar($param)  {
            if ($param === 42) {
                exit(23);
            }
        }
    }

    Source https://phpmd.org/rules/design.html#exitexpression

    A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 27 and the first side effect is on line 2.
    Open

    <?php
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    TRUE, FALSE and NULL must be lowercase; expected "false" but found "False"
    Open

    $exec_page = False;
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        $status = $aresult['status'];
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $event_time = htmlspecialchars($_POST['event_time']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $event_leader_id = htmlspecialchars($_POST['event_leader_id']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $SQL = $SQL . $repeatable . "," . $required . ")";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                echo "Event Time: " . $e_time . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                //add their regular details to the database
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Blank line found at end of control structure
    Open

    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        echo "<table>";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    TRUE, FALSE and NULL must be lowercase; expected "false" but found "False"
    Open

    $public_page = False;
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $event_description = htmlspecialchars($_POST['event_description']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $repeatable = 1;
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $SQL = $SQL . " VALUES ('";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            //more work for regular service events!
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $thursday = htmlspecialchars($_POST['thursday']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                if (isset($_POST['youth']))
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                echo "tu: " . $tuesday . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            echo "<td>" . $result['event_name'] . "</td>";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            if (isset($_POST['required']))
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $SQL = $SQL . $event_place . "','" . $event_description . "'," . $event_cap . "," . $event_leader_id . ",";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $e_time = htmlspecialchars($_POST['time']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $monday = htmlspecialchars($_POST['monday']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                echo "su: " . $sunday . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $count++;
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            {
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            }
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            echo "Leadership: " . $L_val . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            echo "Capacity: " . $event_cap . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                    $youth = 1;
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            if (isset($_POST['repeatable']))
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            //check input
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $friday = htmlspecialchars($_POST['friday']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $SQL = "INSERT INTO regular_service_details (event_id,time,sunday,monday,tuesday,wednesday,thursday,friday,saturday,service_type,youth) VALUES ($event_id,'$e_time',$sunday,$monday,$tuesday,$wednesday,$thursday,$friday,$saturday,'$service_type',$youth) ";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            }
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $SQL = $SQL . $event_type . "'," . $event_id . ",'" . $event_name . "'," . $L_val . "," . $F_val . "," . $S_val . ",'" . $event_time . "','";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        $response=$db->query("SELECT event_name,event_type FROM events_listing");
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        echo "<tr><td>#</td><td>Name</td><td>Type</td></tr>";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        }
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $tuesday = htmlspecialchars($_POST['tuesday']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                }
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        }
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    TRUE, FALSE and NULL must be lowercase; expected "true" but found "True"
    Open

    $active_page = True;
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $event_id = htmlspecialchars($_POST['event_id']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $required = 1;
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            echo "Event Type: " . $event_type . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            echo "Description: " . $event_description . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $event_name = htmlspecialchars($_POST['event_name']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            //add the event to the database
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $S_val = htmlspecialchars($_POST['S_val']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $required = 0;
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            if ($event_type = "Regular")
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $wednesday = htmlspecialchars($_POST['wednesday']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                    
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                echo "mo: " . $monday . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            echo "Repeatable: " . $repeatable . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $saturday = htmlspecialchars($_POST['saturday']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $youth = 0;
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $event_place = htmlspecialchars($_POST['event_place']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $repeatable = 0;
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            echo "Friendship: " . $F_val . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            echo "Place: " . $event_place . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        //display all events in a table
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        while($result=mysqli_fetch_array($response))
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $event_cap = htmlspecialchars($_POST['event_cap']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $SQL = $SQL . "(event_type,event_id,event_name,L_val,F_val,S_val,event_time,event_place,event_description,event_cap,event_leader_id,repeatable,required)";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            echo "Required: " . $required . '<br><br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        { 
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            echo "<td>" . $result['event_type'] . "</td></tr>";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        echo "Only exec can create events.";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        if (isset($_POST['submit']) && isset($_POST['event_name'])) 
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $event_type = htmlspecialchars($_POST['event_type']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $F_val = htmlspecialchars($_POST['F_val']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        {
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $result = $db->query($SQL) or die("<a href='create_event.php'>Create an Event</a>");
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            {
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            echo "Event Name: " . $event_name . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            echo "Event ID: " . $event_id . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $sunday = htmlspecialchars($_POST['sunday']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $service_type = htmlspecialchars($_POST['service_type']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                echo "we: " . $wednesday . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                echo "th: " . $thursday . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                echo "fr: " . $friday . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        echo "<br><p><a href='create_event.php'>Create an Event</a></p><br>";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            echo "<tr><td>".$count . "</td>";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            echo "Leader ID: " . $event_leader_id . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            {
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            }
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        $count = 0;
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        echo "</table>";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        $user_id = $_SESSION['sessionID'];    
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $L_val = htmlspecialchars($_POST['L_val']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $SQL = "INSERT INTO events_listing ";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            echo "<h1>Event " . $event_name . " successfully created!</h1>";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            echo "Time: " . $event_time . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                {
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                echo "sa: " . $saturday . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $result = $db->query($SQL) or die("Failed to submit.");
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    End of line character is invalid; expected "\n" but found "\r\n"
    Open

    <?php
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line exceeds 120 characters; contains 162 characters
    Open

            $SQL = $SQL . "(event_type,event_id,event_name,L_val,F_val,S_val,event_time,event_place,event_description,event_cap,event_leader_id,repeatable,required)";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

        $user_id = $_SESSION['sessionID'];    
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line exceeds 120 characters; contains 266 characters
    Open

                $SQL = "INSERT INTO regular_service_details (event_id,time,sunday,monday,tuesday,wednesday,thursday,friday,saturday,service_type,youth) VALUES ($event_id,'$e_time',$sunday,$monday,$tuesday,$wednesday,$thursday,$friday,$saturday,'$service_type',$youth) ";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

        include('mysql_access.php');
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line exceeds 120 characters; contains 149 characters
    Open

            $SQL = $SQL . $event_type . "'," . $event_id . ",'" . $event_name . "'," . $L_val . "," . $F_val . "," . $S_val . ",'" . $event_time . "','";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            $event_type = htmlspecialchars($_POST['event_type']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 16 spaces, found 12
    Open

                $required = 1;
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            $SQL = $SQL . $event_place . "','" . $event_description . "'," . $event_cap . "," . $event_leader_id . ",";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Expected 1 space after closing parenthesis; found 10
    Open

            if ($event_type = "Regular")
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 16 spaces, found 12
    Open

                $tuesday = htmlspecialchars($_POST['tuesday']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 20 spaces, found 16
    Open

                    $youth = 1;
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 8 spaces, found 4
    Open

        echo "<tr><td>#</td><td>Name</td><td>Type</td></tr>";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            echo "<td>" . $result['event_type'] . "</td></tr>";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected 4 spaces, found 0
    Open

    }
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            echo "Event Name: " . $event_name . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            echo "Time: " . $event_time . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 16 spaces, found 12
    Open

                echo "we: " . $wednesday . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 8 spaces, found 4
    Open

        echo "<br><p><a href='create_event.php'>Create an Event</a></p><br>";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Expected 1 space after closing brace; newline found
    Open

    }
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            $L_val = htmlspecialchars($_POST['L_val']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            $event_cap = htmlspecialchars($_POST['event_cap']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            $SQL = $SQL . "(event_type,event_id,event_name,L_val,F_val,S_val,event_time,event_place,event_description,event_cap,event_leader_id,repeatable,required)";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected 12 spaces, found 8
    Open

            if ($event_type = "Regular")
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected 8 spaces, found 4
    Open

        if (isset($_POST['submit']) && isset($_POST['event_name'])) 
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            $S_val = htmlspecialchars($_POST['S_val']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected 12 spaces, found 8
    Open

            }
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 16 spaces, found 12
    Open

                echo "sa: " . $saturday . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 8 spaces, found 4
    Open

        echo "<table>";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Whitespace found at end of line
    Open

        { 
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected 4 spaces, found 0
    Open

    }
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            echo "Friendship: " . $F_val . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            {
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 16 spaces, found 12
    Open

                $e_time = htmlspecialchars($_POST['time']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 16 spaces, found 12
    Open

                $wednesday = htmlspecialchars($_POST['wednesday']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected 16 spaces, found 12
    Open

                if (isset($_POST['youth']))
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Expected 1 space after closing parenthesis; found 10
    Open

            if (isset($_POST['repeatable']))
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            {
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            $SQL = "INSERT INTO events_listing ";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            echo "Description: " . $event_description . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 16 spaces, found 12
    Open

                echo "tu: " . $tuesday . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 8 spaces, found 4
    Open

        $response=$db->query("SELECT event_name,event_type FROM events_listing");
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Expected 1 space after ELSE keyword; 0 found
    Open

    else{
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 8 spaces, found 4
    Open

        echo "Only exec can create events.";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Whitespace found at end of line
    Open

        $user_id = $_SESSION['sessionID'];    
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            $event_place = htmlspecialchars($_POST['event_place']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            $result = $db->query($SQL) or die("<a href='create_event.php'>Create an Event</a>");
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected 12 spaces, found 8
    Open

            }
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            $F_val = htmlspecialchars($_POST['F_val']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            echo "Place: " . $event_place . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 16 spaces, found 12
    Open

                $thursday = htmlspecialchars($_POST['thursday']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 16 spaces, found 12
    Open

                $friday = htmlspecialchars($_POST['friday']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 16 spaces, found 12
    Open

                echo "su: " . $sunday . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 16 spaces, found 12
    Open

                echo "th: " . $thursday . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected 4 spaces, found 0
    Open

    else{
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected 4 spaces, found 0
    Open

    if ($status == 'Appointed' || $status == 'Elected') {
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            $event_description = htmlspecialchars($_POST['event_description']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Space before opening parenthesis of function call prohibited
    Open

    require_once ('session.php');
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            {
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected 12 spaces, found 8
    Open

            if (isset($_POST['required']))
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 8 spaces, found 4
    Open

        {
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            $required = 0;
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            $SQL = $SQL . " VALUES ('";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected 8 spaces, found 4
    Open

        while($result=mysqli_fetch_array($response))
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            echo "Repeatable: " . $repeatable . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 16 spaces, found 12
    Open

                $sunday = htmlspecialchars($_POST['sunday']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            echo "<tr><td>".$count . "</td>";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 16 spaces, found 12
    Open

                $service_type = htmlspecialchars($_POST['service_type']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 16 spaces, found 12
    Open

                $youth = 0;
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 16 spaces, found 12
    Open

                echo "Event Time: " . $e_time . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Expected 1 space after closing parenthesis; found 7
    Open

        if (isset($_POST['submit']) && isset($_POST['event_name'])) 
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            $event_leader_id = htmlspecialchars($_POST['event_leader_id']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            echo "Leader ID: " . $event_leader_id . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 16 spaces, found 12
    Open

                $result = $db->query($SQL) or die("Failed to submit.");
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Whitespace found at end of line
    Open

        if (isset($_POST['submit']) && isset($_POST['event_name'])) 
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            $event_id = htmlspecialchars($_POST['event_id']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            $event_time = htmlspecialchars($_POST['event_time']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 16 spaces, found 12
    Open

                $repeatable = 1;
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            $SQL = $SQL . $repeatable . "," . $required . ")";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 16 spaces, found 12
    Open

                $monday = htmlspecialchars($_POST['monday']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 16 spaces, found 12
    Open

                $saturday = htmlspecialchars($_POST['saturday']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 16 spaces, found 12
    Open

                echo "mo: " . $monday . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Expected 1 space after WHILE keyword; 0 found
    Open

        while($result=mysqli_fetch_array($response))
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Space before opening parenthesis of function call prohibited
    Open

    require_once ('mysql_access.php');
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            $event_name = htmlspecialchars($_POST['event_name']);
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Expected 1 space after closing parenthesis; found 10
    Open

            if (isset($_POST['required']))
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Opening brace should be on a new line
    Open

    function show_active() {
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            $SQL = $SQL . $event_type . "'," . $event_id . ",'" . $event_name . "'," . $L_val . "," . $F_val . "," . $S_val . ",'" . $event_time . "','";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            echo "Event Type: " . $event_type . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected 12 spaces, found 8
    Open

            }
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            echo "Event ID: " . $event_id . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 16 spaces, found 12
    Open

                {
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 16 spaces, found 12
    Open

                echo "fr: " . $friday . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 16 spaces, found 12
    Open

                $SQL = "INSERT INTO regular_service_details (event_id,time,sunday,monday,tuesday,wednesday,thursday,friday,saturday,service_type,youth) VALUES ($event_id,'$e_time',$sunday,$monday,$tuesday,$wednesday,$thursday,$friday,$saturday,'$service_type',$youth) ";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 8 spaces, found 4
    Open

        $count = 0;
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected 8 spaces, found 4
    Open

        }
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            $count++;
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected 8 spaces, found 4
    Open

        }
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 8 spaces, found 4
    Open

        echo "</table>";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            $repeatable = 0;
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            echo "<h1>Event " . $event_name . " successfully created!</h1>";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            echo "Capacity: " . $event_cap . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            echo "Required: " . $required . '<br><br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Expected 1 space after closing parenthesis; found 14
    Open

                if (isset($_POST['youth']))
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected 16 spaces, found 12
    Open

                }
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Expected 1 space after closing parenthesis; found 6
    Open

        while($result=mysqli_fetch_array($response))
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            echo "<td>" . $result['event_name'] . "</td>";
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected 12 spaces, found 8
    Open

            if (isset($_POST['repeatable']))
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 12 spaces, found 8
    Open

            echo "Leadership: " . $L_val . '<br>';
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    Line indented incorrectly; expected at least 8 spaces, found 4
    Open

        { 
    Severity: Minor
    Found in create_event_done.php by phpcodesniffer

    The variable $event_id is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $F_val is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_place is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_type is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_time is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $e_time is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $SQL is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_leader_id is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $L_val is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $SQL is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_type is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $SQL is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $SQL is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_type is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_name is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_cap is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $SQL is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $SQL is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_description is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_name is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_name is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $service_type is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $L_val is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $F_val is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_time is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $SQL is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_place is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $SQL is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $F_val is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_leader_id is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $SQL is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_description is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_leader_id is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $e_time is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_time is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_id is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $SQL is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_cap is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $SQL is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $S_val is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_cap is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $SQL is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_name is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_description is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $L_val is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_id is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $SQL is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $e_time is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $S_val is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $SQL is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $user_id is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $user_id is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_id is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_place is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $event_type is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $service_type is not named in camelCase.
    Open

    function show_active() {
        include('mysql_access.php');
        $user_id = $_SESSION['sessionID'];    
        $aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
        $aresult=mysqli_fetch_array($aresponse);
    Severity: Minor
    Found in create_event_done.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    There are no issues that match your filters.

    Category
    Status