MySQL Forums
Forum List  »  PHP

how do I make this work for yesterday?
Posted by: Evert Meulie
Date: December 02, 2011 06:52AM

Hi all,

This piece of script gives me the number of hits for today. How do I make it give me the results for yesterday instead?
(an inherited site...)

*********************
$requestsToday =
isset($requests[date('Y-m-d')]) ? $requests[date('Y-m-d')] : 0;
*********************

Regards,
Evert

Options: ReplyQuote


Subject
Written By
Posted
how do I make this work for yesterday?
December 02, 2011 06:52AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.