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.
How to Upload a picture in server/mysql and retrieve?
Moderator: General Moderators
Re: How to Upload a picture in server/mysql and retrieve?
What have you tried and what doesn't work?
Re: How to Upload a picture in server/mysql and retrieve?
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!
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?
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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: How to Upload a picture in server/mysql and retrieve?
lol, and the war rages on... (Hermit TL gracefully steps aside after his final statement on this)Do not store images in a MySQL database
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?
Always a good idea.Hermit TL wrote:do your own research and come to your own conclusion
As long as you come to the same conclusion as me *wink*
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.