Page 1 of 1
How to Upload a picture in server/mysql and retrieve?
Posted: Wed Nov 16, 2011 8:49 am
by monir321
Dear Friends,
This is Monir from Malaysia, I am really happy to be a member of this group.
I am searching some code or tutorial regarding to upload picture in servers local directory or in Mysql Database and retrieve with some information like ID or Name and view in PHP webpage?
I already have tried with some tutorials but it wont work.
Please help.
Re: How to Upload a picture in server/mysql and retrieve?
Posted: Wed Nov 16, 2011 8:52 am
by Celauran
What have you tried and what doesn't work?
Re: How to Upload a picture in server/mysql and retrieve?
Posted: Fri Nov 25, 2011 5:51 am
by Hermit TL
Thought I have never actually done this, if I was allowing users to upload images, I would opt for storing it in a MySQL database as a
BLOB
Like Celauran said, it would help us greatly to know what you have already tried and what and/or why it doesn't work.
Maybe:
http://www.phpriot.com/articles/images-in-mysql
And welcome to the forums! I love this place!
Re: How to Upload a picture in server/mysql and retrieve?
Posted: Fri Nov 25, 2011 12:11 pm
by pickle
Do not store images in a MySQL database. I understand the appeal, but it really slows down the site. The filesystem is built to handle files, so that's where they should be stored.
Re: How to Upload a picture in server/mysql and retrieve?
Posted: Fri Nov 25, 2011 3:44 pm
by Hermit TL
Do not store images in a MySQL database
lol, and the war rages on... (Hermit TL gracefully steps aside after his final statement on this)
Whether or not you choose to store images in the MySQL database, do your own research and come to your own conclusion, it's a heavily debated topic.
Re: How to Upload a picture in server/mysql and retrieve?
Posted: Fri Nov 25, 2011 3:50 pm
by pickle
Hermit TL wrote:do your own research and come to your own conclusion
Always a good idea.
As long as you come to the same conclusion as me *wink*