Help with a Robust File List/Index
This year I told my mom that I'd try to type up her recipes that she'd collected over several years as a Christmas present of sorts. However, due to some computer issues, and the sheer volume of recipes she had, I'm not going to have them all done by Christmas time, so I figured the second best option I had until I could get them all typed was to make a well-organized listing of the scans I made.
While I have the basic file listing made up, it's not easily searchable and kind of bland.
My ultimate goals are the following:
After looking online for a while, I have had absolutely no luck finding code that will do the subdivision by first letter that will work with the rest of my code. (There is code out there, but either the code I've pieced together doesn't call information in the right way, or I'm trying to merge the two codes incorrectly.)
I haven't yet looked for any code to replace the _ with spaces in the file name, because, to be honest, that's really just me being anal retentive. It's the least important entry in this list, but all the same, any help would be greatly appreciated.
Considering it's been a couple of years since my PHP class and I haven't used it regularly, I'm a bit rusty. I've been thinking that perhaps my best option is a bunch of functions, and then calling them at the very end, but I'm definitely up for constructive criticism on that thought.
While I love challenges, and normally don't like asking for help because I don't learn through doing that way (which is the way I learn), I work retail, and I know that the rest of this month is going to take it out of me both mentally and physically so I'm begging for mercy here.
This is the code that I do have, taken and modified from multiple sites online.
Here's how I'd do it. It's called a control-break, and what it does is evaluate the first letter of the link and compare it to the first letter of the link before it. If the letter has changed, then crank out the HTML coding for the new letter's heading. If it's the same, then spit out just the link.
Here's the code:
Thank You, Fumigator! The page is pretty much exactly how I want it now.
|All times are GMT +1. The time now is 07:16 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.