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.

"; echo "Random Joke Of The Day:

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

"; } echo "
"; echo "Top 5 Highest Rated Jokes:

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

"; } echo "
"; echo "Newest Jokes:

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

"; } echo "
"; ?>