📅  最后修改于: 2022-03-11 14:54:19.957000             🧑  作者: Mango
query("INSERT into images (image, uploaded) VALUES ('$imgContent', NOW())"); if($insert){ $status = 'success'; $statusMsg = "File uploaded successfully."; }else{ $statusMsg = "File upload failed, please try again."; } }else{ $statusMsg = 'Sorry, only JPG, JPEG, PNG, & GIF files are allowed to upload.'; } }else{ $statusMsg = 'Please select an image file to upload.'; } } // Display status message echo $statusMsg; ?>