Create Function for Image Archive

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
azri_bech
Forum Newbie
Posts: 14
Joined: Fri Aug 07, 2009 11:15 pm

Create Function for Image Archive

Post by azri_bech »

How to Create the simple function for image archive
once user click the year,they will display the month for the image archived that record by date_posted

(2009)
-Jan
-Feb(2)
-Mar(1)
-Apr(0)
(2008)
-Jan(1)
-Feb(2)

Thanks
uyewq
Forum Newbie
Posts: 22
Joined: Thu Sep 17, 2009 6:21 am

Re: Create Function for Image Archive

Post by uyewq »

hi,
your requiremrnt is so general that precise help doesn't seem to be possible...
i recommend you that 1- design your mysql table 2- create connection 3- get values from suitable rows
for step 1, maybe image_id, image_url , image_adding_date,image_time, image_title_info, image_alt_info, width, height, type, extra_notes,img_keywords ... ...
for step 3 for example, you can extract year and also month info from image_adding_date ...

if you are very new to these steps, you should read and apply tutorials that thousands of exist on web.
Bye
Post Reply