display accesses the super-global variable $_SESSION. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Read upRead up
- Exclude checks
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() {
?>
<h1> Event Creation Home </h1>
<?php
include('mysql_access.php');
- Read upRead up
- Exclude checks
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() {
?>
<h1> Event Creation Home </h1>
<?php
include('mysql_access.php');
- Read upRead up
- Exclude checks
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() {
?>
<h1> Event Creation Home </h1>
<?php
include('mysql_access.php');
- Read upRead up
- Exclude checks
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 display
has 215 lines of code (exceeds 25 allowed). Consider refactoring. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
Function display
has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Read upRead up
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
File create_event.php
has 286 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
require_once ('session.php');
require_once ('mysql_access.php');
?>
<!doctype html>
Method show_active
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
function show_active() {
?>
<h1> Event Creation Home </h1>
<?php
include('mysql_access.php');
The function display() has 220 lines of code. Current threshold is set to 100. Avoid really long methods. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Exclude checks
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");
- Read upRead up
- Exclude checks
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
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
- Read upRead up
- Exclude checks
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
$response=$db->query("SELECT COUNT(event_id) FROM events_listing");
- Read upRead up
- Exclude checks
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
$rresponse=$db->query("SELECT id FROM contact_information WHERE position='Recording Secretary'");
- Read upRead up
- Exclude checks
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
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
{
echo "You cannot create events because you are not on Exec.";
}
- Read upRead up
- Exclude checks
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
Avoid unused local variables such as '$next'. Open
$next = $result['COUNT(event_id)'] + 1;
- Read upRead up
- Exclude checks
UnusedLocalVariable
Since: 0.2
Detects when a local variable is declared and/or assigned, but not used.
Example
class Foo {
public function doSomething()
{
$i = 5; // Unused
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable
Avoid unused local variables such as '$page'. Open
$page = null;
- Read upRead up
- Exclude checks
UnusedLocalVariable
Since: 0.2
Detects when a local variable is declared and/or assigned, but not used.
Example
class Foo {
public function doSomething()
{
$i = 5; // Unused
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable
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
- Exclude checks
The parameter $event_type is not named in camelCase. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
Spaces must be used for alignment; tabs are not allowed Open
<p>Leadership Points:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Required?
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
else if ($event_type=='Attendance') {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="text" name="event_name" required></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="hidden" step="0.25" name="F_val" value="0"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if ($event_type=='Other')
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="number" step="0.25" name="S_val" value="0"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<form name="myform" action="create_event_done.php" method="post">
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Required?
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Event Title:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="text" name="event_description"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='date' name='event_time' value=0></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Event Cap: (use 0 if there is no cap)
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
?>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="checkbox" name="required"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
?>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Description:<p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Repeatable?
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<form name="myform" action="create_event_done.php" method="post">
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='hidden' name='event_time' value=0>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="checkbox" name="required"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p> Sunday
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "false" but found "False" Open
$public_page = False;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p> Friday
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$next = $result['MAX(event_id)'] + 1;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p> Saturday
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Event Leader ID: (defaults to your ID)
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Description:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Description:<p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="text" name="service_type"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p> 2 : every other week </p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='number' name='event_leader_id' value=<?= $user_id ?>></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Youth?
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Meeting Location:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<form name="myform" action="create_event_done.php" method="post">
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="number" name="event_cap" value="0"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="text" name="event_description"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
</form>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="hidden" step="0.25" name="L_val" value="0"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
{
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='text' name='event_place' value='Circle Drive'></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<option value='Large'>Large Service</option>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Event Cap: (use 0 if there is no cap)
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<h1> Event Creation Home </h1>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
include('mysql_access.php');
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$user_id = $_SESSION['sessionID'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Event Title:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='hidden' name='event_id' value=<?= $next ?>>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="number" step="0.25" name="L_val" value="0"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="number" step="0.25" name="F_val" value="0"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Meeting Location:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='hidden' name='event_type' value='<?= $event_type ?>'>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Date: (leave blank if not applicable)
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p> 0 : never on this day </p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='date' name='event_time' value=0></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='number' name='event_leader_id' value=<?= $user_id ?>></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='number' name='tuesday' value=0></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='hidden' name='event_type' value='<?= $event_type ?>'>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p> 1 : weekly </p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="text" name="event_name" required></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="hidden" step="0.25" name="F_val" value="0"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='number' name='wednesday' value=0></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='number' name='saturday' value=0></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="text" name="event_name" required></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Meeting Location:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="hidden" step="0.25" name="S_val" value="0"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="checkbox" name="required"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="submit" name="submit" value="create"/></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='hidden' name='event_id' value=<?= $next ?>>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="submit" name="submit" value="create"/></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<option value='Attendance'>Attendance</option>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Service Points:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="submit" name="submit" value="create"/></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
?>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
</form>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Friendship Points:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Service Points:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='text' name='event_place' value='Circle Drive'></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
</form>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<form name="myform" action="create_event_done.php" method="post">
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p> Tuesday
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p> Thursday
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Time
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Event Leader ID: (defaults to your ID)
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<h2>Create Large Service Event</h2>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='date' name='event_time' value=0></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="checkbox" name="repeatable"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="submit" name="submit" value="create"/></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$rresult=mysqli_fetch_array($rresponse);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
</form>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Event Title:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<?php
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Service Points:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="hidden" name="event_cap" value="0"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//sets event info section from selection
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="submit" name="submit" value="create"/></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='hidden' name='event_type' value='<?= $event_type ?>'>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$task_desc = "Help an exec member!";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<h2>Create Chapter Event</h2>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="hidden" step="0.25" name="F_val" value="0"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
else
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Date: (leave blank if not applicable)
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="text" name="event_description"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$next = $result['COUNT(event_id)'] + 1;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<option value='Other'>Other</option>!-->
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
display($event_type);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "You cannot create events because you are not on Exec.";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="number" step="0.25" name="S_val" value="0"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="text" name="event_description"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="text" name="event_description"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="checkbox" name="required"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
else if ($event_type=='Large') {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='hidden' name='event_place' value='Circle Drive'>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="number" name="event_cap" value="0"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Repeatable?
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$rresponse=$db->query("SELECT id FROM contact_information WHERE position='Recording Secretary'");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='hidden' name='event_leader_id' value=<?= $rec_id ?>></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$aresult=mysqli_fetch_array($aresponse);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$event_type = "none";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
?>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Event Type:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<h2>Create Other Event</h2>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="text" name="event_name" required></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
?>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="number" name="event_cap" value="0"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<?php
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="checkbox" name="repeatable"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='hidden' name='event_type' value='<?= $event_type ?>'>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
</form>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Event Cap: (use 0 if there is no cap)
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<?php
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='hidden' name='event_id' value=<?= $next ?>>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Meeting Location:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<?php
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p> Wednesday
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Event Leader ID: (defaults to your ID)
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='number' name='sunday' value=0></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<?php
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<h2>Create Regular Service Event</h2>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
?>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p> Occurence Information: </p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='text' name='event_place' value='Circle Drive'></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p> Monday
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='text' name='event_place' value='Circle Drive'></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='hidden' name='event_id' value=<?= $next ?>>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='number' name='friday' value=0></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="hidden" step="0.25" name="L_val" value="0">
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="number" name="event_cap" value="0"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
else if ($event_type=='Chapter') {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='hidden' name='event_type' value='Chapter'>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="submit" name="submit" value="create"/></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<?php
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='hidden' name='event_id' value=<?= $next ?>>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
else if ($event_type=='Taskforce') {
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "false" but found "False" Open
$exec_page = False;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="text" name="event_name" required></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Meeting Location:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<h2>Create Taskforce Event</h2>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='number' name='event_leader_id' value=<?= $user_id ?>></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='date' name='event_time' value=0></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="number" step="0.25" name="S_val" value="0"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='hidden' name='event_leader_id' value=<?= $user_id ?>></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Repeatable?
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Repeatable?
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="checkbox" name="repeatable"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
</form>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="checkbox" name="required"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
?>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='date' name='event_time' value=0></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='number' name='monday' value=0></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Repeatable?
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<select name='type_set' onchange="this.form.submit()">
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
</select>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$response=$db->query("SELECT COUNT(event_id) FROM events_listing");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Date: (leave blank if not applicable)
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='number' name='event_leader_id' value=<?= $user_id ?>></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Required?
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Event Cap: (use 0 if there is no cap)
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="number" name="event_cap" value="0"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Required?
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$status = $aresult['status'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<form name="myform" action="" method="post">
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$result=mysqli_fetch_array($response);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
{
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Description:<p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
?>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="text" name="event_name" required></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="number" step="0.25" name="S_val" value="0"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="checkbox" name="repeatable"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Event Title:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Service Points:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Repeatable?
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
?>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='hidden' name='event_type' value='<?= $event_type ?>'>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Date: (leave blank if not applicable)
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
?>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
?>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Event Title:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Date: (leave blank if not applicable)
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="checkbox" name="repeatable"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<h2>Create Attendance Event</h2>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$user_id = $_SESSION['sessionID'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='hidden' name='event_id' value=<?= $next ?>>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
else if ($event_type=='Regular') {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$user_id = $_SESSION['sessionID'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
?>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if ($status == 'Appointed' || $status == 'Elected') {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='number' name='thursday' value=0></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="hidden" step="0.25" name="L_val" value="0"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Service Type:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<option value='null' selected>-- select one --</option>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Required?
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="hidden" step="0.25" name="L_val" value="0"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
</form>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<option value='Taskforce'>Taskforce</option>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='text' name='time' value=0></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Event Cap: (use 0 if there is no cap) do not include project leader
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
?>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="checkbox" name="youth"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="hidden" step="0.25" name="L_val" value="0"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<form name="myform" action="create_event_done.php" method="post">
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Description:<p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Event Title:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Event Leader ID: (defaults to your ID)
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="text" name="event_description" value=<?= $task_desc ?>></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="checkbox" name="repeatable"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Description:<p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<?php
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$page = null;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if(isset($_POST['type_set']))
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$event_type = $_POST['type_set'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<option value='Chapter'>Chapter</option>
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "True" Open
$active_page = True;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$result=mysqli_fetch_array($response);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<form name="myform" action="create_event_done.php" method="post">
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type='text' name='event_place' value='Circle Drive'></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="hidden" step="0.25" name="F_val" value="0"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p>Service Points:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<p> 3 : irregular (monthly, etc) talk to webmaster after selecting<p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="hidden" step="0.25" name="F_val" value="0"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="number" step="0.25" name="S_val" value="0"></p>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$rec_id = $rresult['id'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<?php
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<!--<option value='Regular'>Regular Service</option>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
{
- Exclude checks
End of line character is invalid; expected "\n" but found "\r\n" Open
<?php
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
include('mysql_access.php');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$user_id = $_SESSION['sessionID'];
- Exclude checks
Space before opening parenthesis of function call prohibited Open
require_once ('session.php');
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
else if ($event_type=='Chapter') {
- Exclude checks
Usage of ELSE IF is discouraged; use ELSEIF instead Open
else if ($event_type=='Regular') {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$aresponse=$db->query("SELECT status FROM contact_information WHERE id=$user_id");
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$event_type = "none";
- Exclude checks
Expected 1 space after closing parenthesis; found 10 Open
if(isset($_POST['type_set']))
- Exclude checks
Whitespace found at end of line Open
$user_id = $_SESSION['sessionID'];
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
echo "You cannot create events because you are not on Exec.";
- Exclude checks
Expected 1 space after IF keyword; 0 found Open
if(isset($_POST['type_set']))
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Whitespace found at end of line Open
$user_id = $_SESSION['sessionID'];
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
if ($event_type=='Other')
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$page = null;
- Exclude checks
Usage of ELSE IF is discouraged; use ELSEIF instead Open
else if ($event_type=='Taskforce') {
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Whitespace found at end of line Open
else
- Exclude checks
Expected 1 space after closing parenthesis; found 10 Open
if ($event_type=='Other')
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
else if ($event_type=='Attendance') {
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
else if ($event_type=='Large') {
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
}
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$aresult=mysqli_fetch_array($aresponse);
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
if(isset($_POST['type_set']))
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$response=$db->query("SELECT COUNT(event_id) FROM events_listing");
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$result=mysqli_fetch_array($response);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
display($event_type);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
else
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
if ($status == 'Appointed' || $status == 'Elected') {
- Exclude checks
Expected 1 space after ELSE keyword; newline found Open
else
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$next = $result['COUNT(event_id)'] + 1;
- Exclude checks
Space before opening parenthesis of function call prohibited Open
require_once ('mysql_access.php');
- Exclude checks
Opening brace should be on a new line Open
function display($event_type) {
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
}
- Exclude checks
Usage of ELSE IF is discouraged; use ELSEIF instead Open
else if ($event_type=='Chapter') {
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
else if ($event_type=='Regular') {
- Exclude checks
Opening brace should be on a new line Open
function show_active() {
- Exclude checks
Usage of ELSE IF is discouraged; use ELSEIF instead Open
else if ($event_type=='Large') {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
include('mysql_access.php');
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$user_id = $_SESSION['sessionID'];
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
else if ($event_type=='Taskforce') {
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$status = $aresult['status'];
- Exclude checks
Usage of ELSE IF is discouraged; use ELSEIF instead Open
else if ($event_type=='Attendance') {
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
{
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$event_type = $_POST['type_set'];
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
}
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
}
- Exclude checks
The variable $event_type is not named in camelCase. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Read upRead up
- Exclude checks
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 $rec_id is not named in camelCase. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Read upRead up
- Exclude checks
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() {
?>
<h1> Event Creation Home </h1>
<?php
include('mysql_access.php');
- Read upRead up
- Exclude checks
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 display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Read upRead up
- Exclude checks
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 $task_desc is not named in camelCase. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Read upRead up
- Exclude checks
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 $rec_id is not named in camelCase. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Read upRead up
- Exclude checks
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 display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Read upRead up
- Exclude checks
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 display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Read upRead up
- Exclude checks
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() {
?>
<h1> Event Creation Home </h1>
<?php
include('mysql_access.php');
- Read upRead up
- Exclude checks
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 display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Read upRead up
- Exclude checks
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 display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Read upRead up
- Exclude checks
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 display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Read upRead up
- Exclude checks
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() {
?>
<h1> Event Creation Home </h1>
<?php
include('mysql_access.php');
- Read upRead up
- Exclude checks
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 display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Read upRead up
- Exclude checks
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 display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Read upRead up
- Exclude checks
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 display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Read upRead up
- Exclude checks
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() {
?>
<h1> Event Creation Home </h1>
<?php
include('mysql_access.php');
- Read upRead up
- Exclude checks
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 display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Read upRead up
- Exclude checks
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 display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Read upRead up
- Exclude checks
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 display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Read upRead up
- Exclude checks
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 display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Read upRead up
- Exclude checks
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() {
?>
<h1> Event Creation Home </h1>
<?php
include('mysql_access.php');
- Read upRead up
- Exclude checks
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 display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Read upRead up
- Exclude checks
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 $task_desc is not named in camelCase. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Read upRead up
- Exclude checks
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 display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Read upRead up
- Exclude checks
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 display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$response=$db->query("SELECT MAX(event_id) FROM events_listing");
$result=mysqli_fetch_array($response);
- Read upRead up
- Exclude checks
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();
}
}