Store Image URL in Database

Retrieve Image with PHP Script

How to Save Image Location In Database

Saving URL Text in Database

Saving image filesystem paths, of an image file in the database is easier than saving the whole image. Storing whole images requires converting the image files into bit-streams then saved into the database as binary and then changing them back into their original format when extracting them from the database.

Tutorial - Storing Whole Images in a Database

pic table

id picsLocation ext gender
1 images/girl.jpg jpg female
2 images/boy.jpg jpg male

Pic Location php Script

Author: D.Shaun Morgan