No ID present
"; // Replacement "no image" image and description $image_path = "assets/no_image.png"; $image_alt = "No image could be found, sowwy"; } elseif (empty($image['imagename'])) { // ID not avalible toast echo "Could not find image with ID: ".$_GET['id']."
"; // Replacement "no image" image and description $image_path = "assets/no_image.png"; $image_alt = "No image could be found, sowwy"; } else { // Display image $image_path = "images/".$image['imagename']; $image_alt = $image['alt']; // Add image view if (empty($image['views'])) { //$conn->query("UPDATE swag_table SET views=1 WHERE id=".$image['id']); } else { //$conn->query("UPDATE swag_table SET views=views+1 WHERE id=".$image['id']); } } ?>".$image_alt."
"; } ?>Author: No author
"; } // Views //echo "Views: ".$image['views']."
"; // Image ID echo "ID: ".$image['id']."
"; // File name echo "File Name: ".$image['imagename']."
"; // Image Upload date echo "Last updated: ".$image['upload']." (+0)
"; // Image resolution list($width, $height) = getimagesize($image_path); echo "Image resolution: ".$width."x".$height."
"; // Image download echo "Download image"; ?>Error: Coult not delete image
"; } } echo "Modify image content"; echo ""; } else { } ?>