PHP/MySQL – Save and retrive image from database See how to upload and retrieve an image from MySQL database. Download source code: …
PHP/MySQL – Save/Retrieve image from database Comments:
Diego Campanella: thanks!
Donal J. Byrne: Thank you so much! i was struggling with this for ages!
Aman Abebe: Undefined index: Images in C:xampphtdocsimage.php on line 16and Warning: getimagesize(): Filename cannot be empty in C:xampphtdocsimage.php on line 16
Aris Constantinou: I followed his tutorial step by step but where it connects to the database(localhost,root “”) i replaced those with my database info from my hosting service but for some reason they image tries to get uploaded but it doesn’t . I get “infos” in my php admin “MySQL returned an empty result set (i.e. zero rows). ( Query took 0.0024 sec )”
Manjiri Parab: in localhost, column name= image of datatype blob.if we click on it the image gets downloaded. so can you please guide me , i want this same in webpage. after clicking on image it should get downloaded on computer.
norcal johnny: Why would anyone want in saved in their database?
Lior Cohen: you are great