Welcome to ".$site_name."!

"; echo $site_name." is packed with ".number_format($total_jokes, 0, 0, ',')." (yes ".convert_number($total_jokes)."!) of the funniest jokes in the world. Use the navigation above to browse, search or submit a joke and more.

"; ?>

Random Joke Of The Day:

"; $temp = mysql_query("SELECT * FROM jokes ORDER BY RAND() LIMIT 1"); if($temp) { echo ""; echo "
"; echo ""; while($row = mysql_fetch_array($temp)) { echo ""; echo ""; } echo""; echo "
   Category: ".$row[category]."  ".$row[votestartotal]." stars
".trim(substr(stripslashes($row[joke]), 0, 120))."... more

"; echo "
"; } echo "
"; echo ""; echo ""; echo "
"; echo "  Top Rated Jokes:
"; $temp = mysql_query("SELECT * FROM jokes ORDER BY votestartotal DESC LIMIT 15"); if($temp) { echo ""; $tracker = $start+1; while($row = mysql_fetch_array($temp)) { echo ""; $tracker++; } echo "
"; echo ""; echo ""; echo ""; echo "
".$tracker.".   Category: ".$row[category]."  ".$row[votestartotal]." stars
".trim(substr(stripslashes($row[joke]), 0, 120))."... more

"; echo "
"; } echo "
"; echo ""; echo ""; echo "
"; echo "  Newest Jokes:
"; $temp = mysql_query("SELECT * FROM jokes ORDER BY dateadded DESC LIMIT 15"); if($temp) { echo ""; $tracker = $start+1; while($row = mysql_fetch_array($temp)) { echo ""; $tracker++; } echo "
"; echo ""; echo ""; echo ""; echo "
".$tracker.".   Category: ".$row[category]."  ".$row[votestartotal]." stars
".trim(substr(stripslashes(str_replace(";", ":",strip_tags($row[joke]))), 0, 120))."... more

"; echo "
"; } echo "
"; ?>