A basic approach to upload and save image to a MySQL database and then display the image from the database.
First you need to create a table in MySQL Database to store the image data. Log into you database and run the following sql command:
CREATE TABLE `images` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(100) default NULL,
`size` int(11) default NULL,
`type` varchar(20) default NULL,
`content` mediumblob,
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
Once the table have been created, we
…



