PHP image variables - how to?

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
tinoda
Forum Commoner
Posts: 33
Joined: Mon Dec 29, 2008 3:32 am

PHP image variables - how to?

Post by tinoda »

first i am a newbie in php and I am trying to create a photo gallery with categories. How can I create it in such a way that even computer idiots in other departments of the company can upload their images and make a photo gallery, much more like creating image variables and they get passed to a certain function which then outputs a gallery. thanks guys.
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Re: PHP image variables - how to?

Post by Burrito »

when you create your upload page, provide some fields for meta data about each image (category, date taken etc). Then save that metadata along with a reference to your image path on a database.

you can then select based on whatever criteria you choose and display only the images you wish.
Post Reply