resizeImage(300,null,null,1,null); $image_thumbnail->writeImage($thumb_dir.$image_basename); // Prepare sql for destruction and filtering the sus $sql = "INSERT INTO swag_table (imagename, alt, author) VALUES (?, ?, ?)"; if ($stmt = mysqli_prepare($conn, $sql)) { // Bind the smelly smelly mysqli_stmt_bind_param($stmt, "sss", $param_image_name, $param_alt_text, $param_user_id); // Setting up parameters $param_image_name = $_FILES["image"]["name"]; $param_alt_text = $_POST['alt']; $param_user_id = $_SESSION["id"]; // Attempt to execute the prepared statement if (mysqli_stmt_execute($stmt)) { $success = "Your Image uploaded successfully!"; } else { $error = "Something went fuckywucky, please try later"; } } } else { $error = "F, Upload failed"; } } else { $error = "File uploaded not supported, file types that are allowed include: JPG, JPEG, PNG and WEBP"; } } } ?>
sniffleAdd('Error', '".$error."', 'var(--red)', '".$root_dir."assets/icons/cross.svg');"; } if (isset($success)) { echo ""; } ?>

Upload image

In this world you have 2 choices, to upload a really cute picture of an animal or fursuit, or something other than those 2 things.