".UCWords($cat)."

"; ?>
0) { echo ""; $tracker = $start+1; while($row = mysql_fetch_array($temp)) { echo ""; echo ""; $tracker++; } echo "
".$tracker.".   ".$row[category_name]."  ".$row[votestartotal]." stars
".trim(substr(stripslashes($row[joke]), 0, 120))."... view the article

"; } ?>
$perpage) { $start2 = $start - ($perpage * 2); if($start2 < 0) $start2 = 0; echo "< Previous Page  "; } if($start < $total) echo "  Next Page >"; ?>

Choose from the listings below to begin browsing by category.

"; echo "

Choose a Category:

"; ?>
"; $tracker = 0; while($row = mysql_fetch_array($cats)) { $total = mysql_query("SELECT COUNT(id) AS total FROM jokes WHERE category_name = '".$row[category_name]."' and is_published = 1 and dateadded <= NOW()"); $jokes_total = mysql_result($total, 0, total); if($tracker == 0) echo ""; echo " - ".$row[category_name]." (".$jokes_total.")"; if($tracker == 2) { echo ""; $tracker = 0; } else $tracker++; } echo "
"; ?>