SunQuest
 
           PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old October 28th, 2003, 02:13 PM
mitchum mitchum is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: france
Posts: 13 mitchum User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to mitchum Send a message via AIM to mitchum
Creating An Online Photo Album with PHP and GD

Hello,

I want to update this script. I have test this script, it's very good, but If I have 36 album, there is a very big page.
I want to make a category.

ex: year 2003 -> Album 1
-> Album 2
-> Album 3
year 2004 -> Album 1
-> Album 2
-> Album 3

How I can do? (I'm not very good In PHP...)

Thank you very much

Reply With Quote
  #2  
Old October 30th, 2003, 09:17 AM
mitchum mitchum is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: france
Posts: 13 mitchum User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to mitchum Send a message via AIM to mitchum
Nobody can help me?

Reply With Quote
  #3  
Old November 4th, 2003, 05:04 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Mitchum,

Sorry for the late reply... I've been meaning to answer your question.

One option available to you is to add another field in the albums table called "category_id". Then create a table called "category" that would link back to the
"category_id" from the photos table.

You can then choose to display your albums by category, which will then create smaller pages.

Alternatively, you can use a paging class to create pages, rather than having everything in one long page.

If you have any other questions, let me know.
__________________
____________________________________________
Developer Shed Weekly Writer | DevArticles Forum Moderator
Build Your Own KlipFolio Klip With PHP
FrankManno.com - Under Construction
Design Interactive Group - Under Construction

Reply With Quote
  #4  
Old November 5th, 2003, 07:58 AM
mitchum mitchum is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: france
Posts: 13 mitchum User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to mitchum Send a message via AIM to mitchum
Hi,
I've make a table "category" with an ID and a name.
and i have make a field category_id in the table album.
It's now operationnel, and I've make another thing, the count of the albums
ex: category 1 -> 5 albums
category 2 -> 7 albums

thank you for you help.
cheers,
Mitchum

Reply With Quote
  #5  
Old November 5th, 2003, 06:21 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Mitchum,

Glad it worked...

What do you mean by the "count of the albums"? Can you explain it a little more...

Thanks!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > Creating An Online Photo Album with PHP and GD


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway