The Right Glue
$subtitle
"); ?>
"); } // Get a random avatar $avatar_name = mysql_result($avatar_result,rand(0,$num_avatars-1),"name"); print("
\n"); print("\n"); print("\t\n"); $firstthisyear = true; for ($month = 0; $month < $num_months; $month++) { if (mysql_result($month_result,$month,"year") != $yearname) { continue; } $monthname = mysql_result($month_result,$month,"month"); $monthcode = mysql_result($month_result,$month,"code"); if (!$firstthisyear) { print("\t\n\t\t\n\t\n"); } print("\t\n"); print("\t\t\n"); print("\t\t\n\t\t\n\t\t\n\t\t\n\t\n"); $firstthismonth = false; } $firstthisyear = false; } print("
$yearname
\n\t\t\t
 
\n\t\t
\n"); print("\t\t\t$monthname\n"); print("\t\t\n"); $firstthismonth = true; for ($post = 0; $post < $num_posts; $post++) { if (mysql_result($post_result,$post,"code") != $monthcode) { continue; } if (!$firstthismonth) { print("\t
\n"); } $postname = stripslashes(mysql_result($post_result,$post,"title")); $comments = mysql_result($post_result,$post,"comments"); $urlname = str_replace(" ","_",$postname); $postid = mysql_result($post_result,$post,"id"); print("\t\t\t$postname\n\t\t\n"); if ($comments == 0) { print("\t\t\t(no comments)"); } else if ($comments == 1) { print("\t\t\t(1 comment)"); } else { print("\t\t\t($comments comments)"); } print("\n\t\t
\n"); print("
"); for ($i = 1; $i < 10; $i++) { print("
"); } } ?>