can anybody please tell me how to insert and retrieve an image stored in a database using php and mysql.the way i m doing now is by storing the file in a server and filename in the db.but the problem with that is while retrieving the image doesnt show up.db entries are all correct..but due to some reason i cant display the file in my webpage.please help...dis is very urgent.i m badly running out of time..thanx in advance
ayshasherilps
0
Newbie Poster
Recommended Answers
Jump to Postprovide us with appropriate code...
or check these urls:
http://www.daniweb.com/forums/thread134714.html
http://www.wellho.net/solutions/php-example-php-form-image-upload-store-in-mysql-database-retreive.html
Jump to PostPersonally I would not use the second example-saving images into the Database, there is no need.
The filesystem was designed to do this job so why re-invent the wheel? I have yet to come across a scenario where storing images in the database is better than the filesystem.
All 7 Replies
Shanti C
106
Posting Virtuoso
Will Gresham
81
Master Poster
ayshasherilps
0
Newbie Poster
ayshasherilps
0
Newbie Poster
Shanti C
106
Posting Virtuoso
isaackhazi
0
Newbie Poster
R0bb0b
344
Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.