We use something like this to changing some sections 
of the web page based on the day of the year

#day number of the year, ex day 181, 183, 183

$subPartQuery=date("z")"; 

or

# day of the week 0=sunday mon=1, tue=3
$subPartQuery=date("w")"; 


select from database where day_col = $subPartQuery

etc. etc.

you have to double check the mysql syntax

rm

> On Wed, 28 Feb 2001 [EMAIL PROTECTED] wrote:
> 
> > Date: Wed, 28 Feb 2001 20:30:47 EST
> > From: [EMAIL PROTECTED]
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Daily Rotating Page
> > 
> > I have set up a template for a page that displays
> the featured product of the day. All data is stored
> in a mySQL db. So every day I want to feature a 
> > different product. Each product contains an entry
> in the db for picture, description, and hotlink.
> > 
> > What would be the best way to go about this? Does
> anybody have any sample code on performing this
> specific task once a day?
> > 
> > Your help is appreciated.
> > 
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> > 
> 
> Kelly
> 
> 303-444-1671
> Boulder, Colorado
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> 


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to