Connecting Tech Pros Worldwide Forums | Help | Site Map

How to save image to mysql database in php?

Newbie
 
Join Date: Sep 2008
Posts: 1
#1: Sep 23 '08
hi friends,

I am new in php and i am trying to save image to database. Please provide a sample.

Newbie
 
Join Date: Jul 2008
Posts: 13
#2: Sep 23 '08

re: How to save image to mysql database in php?


Hey why you want to store image in database just store name or path and place that name in image tag through fetching records.
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,949
#3: Sep 23 '08

re: How to save image to mysql database in php?


Quote:

Originally Posted by surajhs

Hey why you want to store image in database just store name or path and place that name in image tag through fetching records.

Sometimes it can be more efficient to store the image in a BLOB data type.

Hey there, Rajesh.

Check out this sweet howto that our great Atli wrote.

Cheers.
Reply