Cats and Code
>^..^<    A Feline-Friendly Space on the Interwebs    >^..^<
A Feline-Friendly Space on the Interwebs

>^..^<   

Update Directory

←   Return

Holly on keyboard

View Demo

This demo copies a real-world application that I used to update a neighborhood directory. There are no 'city', 'state' or 'zip' fields because all the listings are from the same neighborhood. This may seem old fashioned, but surprisingly, the printed directory is very popular.

The previous directory spreadsheet was converted into a flat file database folder labeled 'old-directory'. When a listing was updated or confirmed, a new record was created and stored in the 'new-directory' folder.

After the cutoff date, the new-directory folder was used to create an html document showing an alphabetical section and a street-order section. The document was then converted to a pdf for printing.

As usual, the code was organized into the following folders. The 'admin' pages were used to track the progress of the updates and to generate the final document.

file organization

Update Directory Code

Download

DIR-UPDATE/pages
DIR-UPDATE/inc
DIR-UPDATE/admin-pages
DIR-UPDATE/data