By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,521 Members | 1,492 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,521 IT Pros & Developers. It's quick & easy.

How to save image to mysql database in php?

P: 1
hi friends,

I am new in php and i am trying to save image to database. Please provide a sample.
Sep 23 '08 #1
Share this Question
Share on Google+
2 Replies


P: 13
Hey why you want to store image in database just store name or path and place that name in image tag through fetching records.
Sep 23 '08 #2

Markus
Expert 5K+
P: 6,050
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.
Sep 23 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.