" . $qs); genheader("Glossary of juggling/passing terms"); ?>

All of the juggling terms you will need to know (or perhaps simply all of the ones which we know)

" . $qs); // shouldn't we first check for direct hit??? if (mysql_num_rows($qr) != 1) { printf("

Termid %s unrecognized

\n", $termid); return; } print_glossary_entry(mysql_fetch_array($qr)); } function print_glossary_entry(&$term_row) { // entry header printf("
\n"); // names the term goes by, first the primary name printf("
%s
\n", $term_row["term"], $term_row["term"]); // retrieve any aliases $as = "SELECT * FROM glossaryalias WHERE termid = " . $term_row["termid"]; $ar = mysql_query($as) or die("Cannot query glossary alias: " . mysql_error() . "
" . $as); while (list($term_alias) = mysql_fetch_row($ar)) { printf("
%s
\n", $term_alias, $term_alias); } // definition time $do = new specialText($term_row["definition"]); printf("
%s\n", $do->getHTML()); // children are part of the definition print_children($term_row["termid"]); printf("
\n"); } function print_children($tid) { $qs = "SELECT * FROM glossary WHERE parentid = " . $tid . " ORDER BY term"; $qr = mysql_query($qs) or die("Cannot query children in glossary: " . mysql_error() . "
" . $qs); while ($term_row = mysql_fetch_array($qr)) { print_glossary_entry($term_row); } } include("copynotice.php"); ?>