ajax.php
End of line character is invalid; expected "\n" but found "\r\n" Open
Open
<?php
- Exclude checks
Expected 1 space after IF keyword; 0 found Open
Open
}else if($_POST["$i"]==5){
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 3 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 3 Open
Open
if ($right_answer >= ($i-1)) {
- Exclude checks
A closing tag is not permitted at the end of a PHP file Open
Open
?>
- Exclude checks
Expected 1 space after closing brace; 0 found Open
Open
}else if($_POST["$i"]==5){
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 7 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 7 Open
Open
else{
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 3 Open
Open
while($result=mysqli_fetch_array($response)){
- Exclude checks
Expected 1 space after ELSE keyword; 0 found Open
Open
else{
- Exclude checks
Expected 1 space after IF keyword; 0 found Open
Open
if($result['answer']==$_POST["$i"]){
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 3 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 9 Open
Open
if($result['answer']==$_POST["$i"]){
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 7 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 7 Open
Open
}else if($_POST["$i"]==5){
- Exclude checks
Usage of ELSE IF is discouraged; use ELSEIF instead Open
Open
}else if($_POST["$i"]==5){
- Exclude checks
Expected 1 space after WHILE keyword; 0 found Open
Open
while($result=mysqli_fetch_array($response)){
- Exclude checks
Expected 1 space after closing parenthesis; found 0 Open
Open
while($result=mysqli_fetch_array($response)){
- Exclude checks
Expected 1 space after closing parenthesis; found 0 Open
Open
}else if($_POST["$i"]==5){
- Exclude checks
Expected 1 space after closing brace; newline found Open
Open
}
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
require_once ('session.php');
- Exclude checks
Expected 1 space after closing parenthesis; found 0 Open
Open
if($result['answer']==$_POST["$i"]){
- Exclude checks
Closing brace indented incorrectly; expected 9 spaces, found 7 Open
Open
}else if($_POST["$i"]==5){
- Exclude checks