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

>^..^<   

Online Magazine with Flat File Database

←   Return

catstack magazine

Click here for demo

This demo shows a way of creating relationships between the tables in a flat file database. Arrays with paired values are used to link the 'stories' and 'authors' tables and the 'tags' list. These arrrays are stored in text files, labeled 'maps'. There is a 'date-story' map, a 'story-author' map and a 'tag-story' map, which are all accessed by a function, 'selectMapEntries', that looks for pairs of values that contain both keys.

This code also provides a password-protected administrator page, for adding and editing the content.

CATSTACK Code

Download

CATSTACK/pages
CATSTACK/inc
CATSTACK/admin-pages
CATSTACK/data