|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
Nobody can help me?
|
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
Mitchum,
Glad it worked... What do you mean by the "count of the albums"? Can you explain it a little more... Thanks! |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > Creating An Online Photo Album with PHP and GD |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|