PHP+and+Images

Uploading images is a bad idea
[]

Inserting images in database (not necessarily a good practice)
[]

=Building the Path to an Image File=

You need to get the server path for the document root directory.

code  code []

Then you can append your image path information. code 

or, if you want to keep the image file name in the database so you can use .gif, .png, or .jpg



code

.