468,505 Members | 1,766 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

how to store image in database?

i have build a small website in my PC using PHP and mysql.
it is a social networking site. everything was working fine...... but i noticed that whenever i am saving a profile picture, it is being saved in that folder in which all other php files are stored. so, i reached on to a conclusion that if i create too many users and give them a profile picture each then that folder will be too messy....
My problem lies here......
i was thinking that i am storing my images in mysql databases but in reality it is not being saved there...... plz tell me , how would i make these storage efficient in terms of numbers?

I am using xampp on wnidows 7......
Aug 13 '13 #1
2 1377
Exequiel
288 256MB
when you are going to upload an image or any files, you need to create a program that will automatically generate a unique name for every files that you are going to save, the file name must be unique every time you are going to upload, example: filename_121212.jpg, filename_234345345.jpg,
Aug 14 '13 #2
Exequiel
288 256MB
Visit this link. . http://bytes.com/topic/php/answers/9...ideos-database
Then download this one, it is a sample uploading in php. http://www.mediafire.com/download/1i...load_video.rar
Aug 14 '13 #3

Post your reply

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

Similar topics

10 posts views Thread by Raghavendra RAV | last post: by
2 posts views Thread by Dzemal Tipura | last post: by
2 posts views Thread by oren18 | last post: by
2 posts views Thread by Eminosoft | last post: by
reply views Thread by harshad | last post: by
reply views Thread by NPC403 | last post: by
3 posts views Thread by gieforce | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.