Contents
Video
【PHP & MySQL】How to Save Image File – #1 Introduction
Environment
MAMP / PHP version | 7.2.10 (Required PHP 5.4 or later) |
Text Editor | Coda2 |
Browser | Google Chrome |
MySQL Database
Database name: my_image
Table name: images
Name | type |
---|---|
image_id | int / AUTO_INCREMENT |
image_name | varchar(256) |
image_type | varchar(64) |
image_content | mediumblob |
image_size | int |
created_at | datetime |
Sample Code
HTML (Bootstrap & Font Awesome)
Insert, Display, and Delete an image file into MySQL database
functions.php
list.php
image.php
delete.php