Actually that snippet was to get all the items posted since the first 
day of the current month, just for an example.  Good idea, I will do 
that and post the new function....

On 4 Nov 2000, at 11:21, Leon Atkinson wrote:

> > $NewItems = GetNewItems(date("Y-m-d", mktime(0,0,0,date("m")-
> > 1,0,date("Y"))));
> 
> This is just as good, I think:
> $NewItems = GetNewItems(date("Y-m-d"));
> You're just trying to get today's date at midnight, right?
> 
> I'd suggest changing your function so that it accepts a standard timestamp
> and then assemble the string for MySQL inside the function.
> 
> Leon
> 
> 
> 
> 
> 
> ------------------------------------------------------------
> To subscribe:    [EMAIL PROTECTED]
> To unsubscribe:  [EMAIL PROTECTED]
> Site:            http://www.working-dogs.com/freetrade/
> Problems?:       [EMAIL PROTECTED]




------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]

Reply via email to