GJSNeptune
[H]F Junkie
- Joined
- Mar 31, 2004
- Messages
- 12,372
First, I want to compile into one list the most recently submitted items from multiple tables. For example, a list of the last five items I've put into the database, whether they're blog entries, pictures (or a gallery), a song, or a writing piece. Right now blog entries are stored in one table, and writing pieces in another. I haven't created tables for music or pictures yet.
Second, I want these items to be listed as mod_rewrite-friendly links, such as http://www.domain.com/$section/$title. However, I can't think of how I'd determine $section without making it a field in each table. Seems silly to do just to make links easier to do. I have a type field in the writing table because it contains poems, fiction, and nonfiction, but for blog entries, music, and pictures, I'm stumped.
The easy way to do this is to simply display results under their respective categories, but that means more text (and clutter) in the div. I really want to see if I can do it better.
Hope I explained it clearly. Suggestions?
Second, I want these items to be listed as mod_rewrite-friendly links, such as http://www.domain.com/$section/$title. However, I can't think of how I'd determine $section without making it a field in each table. Seems silly to do just to make links easier to do. I have a type field in the writing table because it contains poems, fiction, and nonfiction, but for blog entries, music, and pictures, I'm stumped.
The easy way to do this is to simply display results under their respective categories, but that means more text (and clutter) in the div. I really want to see if I can do it better.
Hope I explained it clearly. Suggestions?