how to generate a random joke on a 24hr basis

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gilbertwang
Forum Commoner
Posts: 32
Joined: Sun Jun 30, 2002 11:08 pm
Location: Calgary

how to generate a random joke on a 24hr basis

Post by gilbertwang »

I would like to pull up a random joke from mysql after a 24hour period the joke would change.

mysql - table (jokes) has fields( joketitle, joke, author, )below would be the display on the page
-----------------------

Joke of the Day

Joketitle
Joke


Author
-----------------------------
thanks for helping
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Post by BDKR »

Cron!
Post Reply