Storing pictures

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tj4life2000
Forum Newbie
Posts: 4
Joined: Wed Jun 14, 2006 9:54 pm

Storing pictures

Post by tj4life2000 »

How do you store images in a database..... basically allowing a user to select picture and later recall them. I do know that I will be using SQL
GM
Forum Contributor
Posts: 365
Joined: Wed Apr 26, 2006 4:19 am
Location: Italy

Post by GM »

It's usually better to store the images in the file system, and store a pointer to them (filename?) in the database itself.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

~GM is right, but doing a Google search will get you what you need - the technique is all over the internet.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply