bawk bawk WHAT?!
just make links to something like
journal.php?month=07 and then select from the database where the month is 07 and sort by que...
whatever the @!#$ 'que' is, you should just make it a timestamp(8) it will automatically provide everything you need.
SQL has built in functions then to select ranges of months, days and years from that timestamp