date functions

From: Date: Tue, 04 Mar 2003 15:17:41 +0000
Subject: date functions
Groups: php.db 
Request: Send a blank email to php-db+get-26084@lists.php.net to get a copy of this message
I want to use it in this function that i am creating (it's for a resteraunt automated tips system, to work out how much tips each staff member is entitled to. ======================================================================== function tips($weekstart){ /* JUST BELOW HERE IS WHERE I NEED TO GET THE DATE OF 6 DAYS AFTER THE SPECIFIED DATE OF THE START OF THE WEEK */ $weekend = date($weekstart +6); $query = "SELECT * FROM Rota WHERE date => $weekstart
                AND date <= $weekend ORDER BY staffid";
etc... _________________________________________________________________ Surf together with new Shared Browsing http://join.msn.com/?page=features/browse&pgmarket=en-gb&XAPID=74&DI=1059

« previous php.db (#26084) next »