user_photo.php
Space before opening parenthesis of function call prohibited Open
Open
include ('mysql_access.php');
- Exclude checks
Expected 1 space after IF keyword; 0 found Open
Open
if(isset($_GET['user_id']) && is_numeric($_GET['user_id'])){
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
Open
$result = $db->query($sql);
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
Open
$sql = "SELECT content FROM user_photos WHERE user_id=" . $_GET['user_id'] . ";";
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
if(!$result || mysqli_num_rows($result) == 0){
- Exclude checks
Expected 1 space after IF keyword; 0 found Open
Open
if(!$result || mysqli_num_rows($result) == 0){
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
;
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
}else{
- Exclude checks
Expected 1 space after closing brace; 0 found Open
Open
}else{
- Exclude checks
Expected 1 space after closing parenthesis; found 0 Open
Open
if(!$result || mysqli_num_rows($result) == 0){
- Exclude checks
Expected 1 space after closing parenthesis; found 0 Open
Open
if(isset($_GET['user_id']) && is_numeric($_GET['user_id'])){
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$image_array = mysqli_fetch_array($result);
- Exclude checks
Expected 1 space after ELSE keyword; 0 found Open
Open
}else{
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
Open
include ('mysql_access.php');
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
header("Content-type: image/jpeg");
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
echo $image_array['content'];
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
}
- Exclude checks
A closing tag is not permitted at the end of a PHP file Open
Open
?>
- Exclude checks