Re: Joke of the day problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 2:30 PM +0100 3/8/07, Delta Storm wrote:
Hi,

again me with the silly questions...

I need a script that will take data from MySQL database and display one row each day.

I have googled, but with no luck.

The database retrieving mechanism is of course clear but I really dont know how to do a 24h delay before the next row is displayed.

If you're going to do that, then I suspect that you have at least 365 jokes.

If that's the case, then just use the data(z) function to pull of the joke who's id is the same as the day of the year. Simple enough. See:

http://hu2.php.net/manual/en/function.date.php

tedd
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux