O'Reilly logo

Catalyst 5.8 by Antano Solar John

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Putting the data on the Web

Now that we have the database set up, we're ready to build a web interface. We will present a summary of the data we collect and provide links for getting more information.

The main page, pictured below, is where we'll start. It displays the results of two queries (highest/lowest score and most/least controversial). The items themselves are links to pages that show the reasons each voter provided for upvoting or downvoting the thing.

Let us start by creating some macros that will make writing the actual pages much easier. Every time we see a "thing", we want it to be a link to the things page. Similarly, we always want negative scores to show up in red, and positive scores in green. Finally, we want nicknames to be ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required