$count) { print "Incorrect number for funny... going random!
\n"; $num = $randnum; } // get the number of the next funny $next = $num + 1; if($next > $count) { $next = 1; } ?>
Enter your choice of funny (1-) here:
Hit reload for a random funny... or you can go through them one by one...
funny number $num (out of $count)


\n"; $sql = "select text from funnies where id = $num "; $stmt = db_query($dbconn, $sql, __FILE__, __LINE__); $results = db_query_get($stmt, __FILE__, __LINE__); db_query_clear($stmt, __FILE__, __LINE__); $lines = explode("\n", $results["text"]); for($i=0; $i\n"; } } ?>

Random | Next >>